Skip to content

Commit

Permalink
Add dropdown cascade test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed May 20, 2023
1 parent bd99bb5 commit 877921b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests-behat/dropdown.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Feature: Dropdown

Scenario: dropdown cascade
Given I am on "form-control/dropdown-plus.php"
Then I select value "Beverages" in lookup "category_id"
Then I select value "Sugar/Sweetened" in lookup "sub_category_id"
Then I select value "Soda" in lookup "product_id"
When I click using selector "(//div[text()='Save'])[2]"
Then Modal is open with text '{ "category_id": "2", "sub_category_id": "9", "product_id": "4" }' in selector "p"
Then I click close modal
Then I should see "Soda"
Then I select value "Coffee and Tea" in lookup "sub_category_id"
Then I should not see "Soda"
Then I should not see "Cola"
Then I should not see "No results found."
When I click using selector "//div.field[label[text()='Product ID']]//div.ui.dropdown"
Then I should see "No results found."

0 comments on commit 877921b

Please sign in to comment.