Skip to content

Commit cec3ccc

Browse files
committed
series/creation/validation.robot: fix the test flake.
Looks like "Wait Until Element Is Visible" expects locator to the single element and doesn't handle the situation where there are 4 elements. To workaround this we're checking for the last field. Follow-up to 40e016d commit.
1 parent 71742a0 commit cec3ccc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,15 @@ Invalid Catalog Price Should Be Rejected
102102
[Documentation] Test that specifying catalog price cause an error
103103
[Arguments] ${catalogPrice}
104104
Click Element id=add-catalog-numbers-link
105-
Wait Until Element Is Visible css=.js-catalogs-info
105+
# we should wait until all 4 field with class js-catalogs-info will be
106+
# visible but for simplicity we just check that the last field is visible
107+
Wait Until Element Is Visible id=gibbonsPrice
106108
Input Text id=michelPrice ${catalogPrice}
107109
Input Text id=scottPrice ${catalogPrice}
108110
Input Text id=yvertPrice ${catalogPrice}
109111
Input Text id=gibbonsPrice ${catalogPrice}
110112
Submit Form id=add-series-form
111-
Wait Until Element Is Visible css=.js-catalogs-info
113+
Wait Until Element Is Visible id=gibbonsPrice
112114
Element Text Should Be id=michelPrice.errors Invalid value
113115
Element Text Should Be id=scottPrice.errors Invalid value
114116
Element Text Should Be id=yvertPrice.errors Invalid value

0 commit comments

Comments
 (0)