Skip to content

Commit ab9a7aa

Browse files
committed
test: fix "Create series by filling all fields".
Relate to #1001 Fix #557
1 parent 34fbcfa commit ab9a7aa

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/test/robotframework/selenium.utils.robot

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,6 @@ Selectize By Value
3232
[Arguments] ${id} ${slug}
3333
Execute Javascript return $('#${id}').selectize()[0].selectize.setValue('${slug}');
3434

35-
Select Country
36-
[Documentation] Select the given value in a select list that is using selectize.js
37-
[Arguments] ${value}
38-
# We can't use "Select From List By Label" because
39-
# 1) it doesn't work with invisible elements (and selectize.js makes field invisible)
40-
# 2) selectize.js dynamically creates list of countries only when we're clicking on the field
41-
Click Element id=country-selectized
42-
${countryOption}= Catenate SEPARATOR=/
43-
... //*[contains(@class, "selectize-control")]
44-
... *[contains(@class, "selectize-dropdown")]
45-
... *[contains(@class, "selectize-dropdown-content")]
46-
... *[contains(@class, "option") and text()="${value}"]
47-
Wait Until Page Contains Element xpath=${countryOption}
48-
Click Element xpath=${countryOption}
49-
5035
Country Field Should Have Option
5136
[Documentation] Verify the selection of the select list that is using selectize.js
5237
[Arguments] ${value}

src/test/robotframework/series/creation/logic-admin.robot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ Create series by filling only required fields and providing a URL to image
3030
Page Should Contain Image id=series-image-1
3131

3232
Create series by filling all fields
33-
[Tags] unstable
3433
Select From List By Label id=category Sport
35-
Select Country Italy
34+
Selectize By Value country italy
3635
Input Text id=quantity 3
3736
Unselect Checkbox id=perforated
3837
Choose File id=image ${MAIN_RESOURCE_DIR}${/}test.png

0 commit comments

Comments
 (0)