Skip to content

Commit 877921b

Browse files
committed
Add dropdown cascade test
1 parent bd99bb5 commit 877921b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests-behat/dropdown.feature

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Feature: Dropdown
2+
3+
Scenario: dropdown cascade
4+
Given I am on "form-control/dropdown-plus.php"
5+
Then I select value "Beverages" in lookup "category_id"
6+
Then I select value "Sugar/Sweetened" in lookup "sub_category_id"
7+
Then I select value "Soda" in lookup "product_id"
8+
When I click using selector "(//div[text()='Save'])[2]"
9+
Then Modal is open with text '{ "category_id": "2", "sub_category_id": "9", "product_id": "4" }' in selector "p"
10+
Then I click close modal
11+
Then I should see "Soda"
12+
Then I select value "Coffee and Tea" in lookup "sub_category_id"
13+
Then I should not see "Soda"
14+
Then I should not see "Cola"
15+
Then I should not see "No results found."
16+
When I click using selector "//div.field[label[text()='Product ID']]//div.ui.dropdown"
17+
Then I should see "No results found."

0 commit comments

Comments
 (0)