-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |