Skip to content

Commit bab94be

Browse files
committed
series/creation/validation.robot: open page before each test for catalog numbers.
This change partially reverts c7f2c9d commit. I hope that this will finally fix #546
1 parent 5e585a0 commit bab94be

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/test/robotframework/series/creation/validation.robot

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,15 @@ Log Out
8787
Invalid Catalog Numbers Should Be Rejected
8888
[Documentation] Test that specifying catalog numbers cause an error
8989
[Arguments] ${catalogNumbers}
90+
# open page each time to be sure that we're starting from the clean state.
91+
# Otherwise it's possible that there errors from the previous test and when
92+
# we'll click on link for adding catalog numbers then fields become
93+
# invisible (because link is toggling the visibility and when there are
94+
# errors, fields are visible from the begining).
95+
Go To ${SITE_URL}/series/add
9096
Click Element id=add-catalog-numbers-link
91-
# wait until all fields with class js-catalogs-info will be visible
92-
Wait Until Element Is Visible id=michelNumbers
93-
Wait Until Element Is Visible id=scottNumbers
94-
Wait Until Element Is Visible id=yvertNumbers
97+
# we should wait until all 4 fields with class js-catalogs-info will be
98+
# visible but for simplicity we just check that the last field is visible
9599
Wait Until Element Is Visible id=gibbonsNumbers
96100
Input Text id=michelNumbers ${catalogNumbers}
97101
Input Text id=scottNumbers ${catalogNumbers}

0 commit comments

Comments
 (0)