diff --git a/tests-behat/accordion.feature b/tests-behat/accordion.feature deleted file mode 100644 index ab423c3401..0000000000 --- a/tests-behat/accordion.feature +++ /dev/null @@ -1,22 +0,0 @@ -Feature: Accordion - - Scenario: Form Accordion Section is activated - Given I am on "form/form-section-accordion.php" - Then I should see "Email" - Then I fill in "email" with "xxx@xxx.com" - - Scenario: Nested Accordion - Given I am on "interactive/accordion-nested.php" - Then I click using selector "(//div[text()='Static Text'])[1]" - Then I click using selector "(//div[text()='Static Text'])[1]" - Then I click using selector "(//div[text()='Static Text'])[1]" - Then I click using selector "(//div[text()='Static Text'])[2]" - Then I click using selector "(//div[text()='Dynamic Text'])[3]" - Then I click using selector "(//div[text()='Dynamic Text'])[3]" - Then I click using selector "(//div[text()='Dynamic Text'])[3]" - Then I click using selector "(//div[text()='Dynamic Form'])[4]" - Then I click using selector "(//div[text()='Dynamic Form'])[4]" - Then I click using selector "(//div[text()='Dynamic Form'])[4]" - Then I fill in "email" with "xxx@xxx.com" - When I press button "Save" - Then I should see "Subscribed xxx@xxx.com to newsletter." diff --git a/tests-behat/basicexecutor.feature b/tests-behat/basicexecutor.feature deleted file mode 100644 index 8aa47660cd..0000000000 --- a/tests-behat/basicexecutor.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: Basic Executor - - Scenario: basic - Given I am on "data-action/actions.php" - When I press button "Import" - Then Toast display should contain text "Done!" - - Scenario: form - Given I am on "data-action/actions.php" - When I press button "Run Import" - Then I should see "Must not be empty" - Then I fill in "path" with "." - Then I press button "Run Import" - Then Toast display should contain text "Imported!" - - Scenario: preview - Given I am on "data-action/actions.php" - When I press button "Confirm" - Then Toast display should contain text "Confirm!" diff --git a/tests-behat/calendar.feature b/tests-behat/calendar.feature deleted file mode 100644 index be9693f09d..0000000000 --- a/tests-behat/calendar.feature +++ /dev/null @@ -1,24 +0,0 @@ -Feature: Calendar - - Scenario: - Given I am on "form-control/calendar.php" - When I fill in "date" with "Jan 3, 2033" - Then I check if input value for "input[name='date']" match text "Jan 3, 2033" - When I fill in "time" with "21:23:59.205603" - Then I check if input value for "input[name='time']" match text "21:23:59.205603" - When I fill in "datetime" with "Jun 29, 2020 1:2:3.0010" - Then I check if input value for "input[name='datetime']" match text "Jun 29, 2020 01:02:03.001" - When I fill in "date_action" with "Dec 8, 2050" - When I press button "Save" - Then Toast display should contain text "Jan 3, 2033, 21:23:59.205603, Jun 29, 2020 01:02:03.001, Dec 8, 2050" - - When I fill in "time" with "21:23:00" - Then I check if input value for "input[name='time']" match text "21:23" - When I fill in "datetime" with "Jun 29, 2020 1:2:0.000001" - Then I check if input value for "input[name='datetime']" match text "Jun 29, 2020 01:02:00.000001" - When I fill in "datetime" with "Jun 29, 2020 1:2:0" - Then I check if input value for "input[name='datetime']" match text "Jun 29, 2020 01:02" - When I press button "Clear" - Then I check if input value for "input[name='date_action']" match text "" - When I press button "Save" - Then Toast display should contain text "Jan 3, 2033, 21:23, Jun 29, 2020 01:02, empty" diff --git a/tests-behat/callback.feature b/tests-behat/callback.feature deleted file mode 100644 index e0e24cc559..0000000000 --- a/tests-behat/callback.feature +++ /dev/null @@ -1,22 +0,0 @@ -Feature: Callback - - Scenario: - Given I am on "_unit-test/callback.php" - Then I press button "First" - Then I should see "TestName" - When I press Modal button "Save" - Then Toast display should contain text "Save" - Then I should not see "TestName" - - Scenario: - Given I am on "_unit-test/callback-nested.php" - Then I press button "Load1" - Then I should see "Loader-1" - Then I press button "Load2" - Then I should see "Loader-2" - Then I should see "Loader-3" - Then I click paginator page "2" - Then I click using selector "(//div.ui.atk-test.button)[1]" - Then Modal is open with text "Edit Country" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "edit" with "Andorra" entity was executed.' diff --git a/tests-behat/card-deck.feature b/tests-behat/card-deck.feature deleted file mode 100644 index 2b290f3247..0000000000 --- a/tests-behat/card-deck.feature +++ /dev/null @@ -1,38 +0,0 @@ -Feature: CardDeck - - Scenario: - Given I am on "_unit-test/card-deck.php" - - Scenario: add - Then I press button "Add Country" - Then I fill in "atk_fp_country__name" with "Test" - Then I fill in "atk_fp_country__iso" with "TT" - Then I fill in "atk_fp_country__iso3" with "TTT" - Then I fill in "atk_fp_country__numcode" with "123" - Then I fill in "atk_fp_country__phonecode" with "1" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "add" with "Test" entity was executed.' - - Scenario: search - Then I fill in "atk-vue-search" with "united kingdom" - Then I should see "United Kingdom" - - Scenario: edit - Then I press button "Edit" - Then Modal is open with text "Edit Country" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "edit" with "United Kingdom" entity was executed.' - # make sure search query stick - Then I should see "United Kingdom" - - Scenario: delete - Then I press button "Delete" - Then I press Modal button "Ok" - Then Toast display should contain text 'Country action "delete" with "United Kingdom" entity was executed.' - - Scenario: delete - with unlocked DB - When I persist DB changes across requests - Then I press button "Delete" - Then I press Modal button "Ok" - Then Toast display should contain text 'Record has been deleted!' - Then I should not see "United Kingdom" diff --git a/tests-behat/card.feature b/tests-behat/card.feature deleted file mode 100644 index 88552ff173..0000000000 --- a/tests-behat/card.feature +++ /dev/null @@ -1,29 +0,0 @@ -Feature: Card - - Scenario: Card with entity, entity must not reload - Given I am on "data-action/factory-view.php" - Then I click using selector "i.eye.icon" - Then Modal is open with text "Display Preview prior to run the action" - Then Modal is open with text "Previewing country France NO RELOAD" - Then I press Modal button "Preview" - Then Toast display should contain text "Success: Done previewing France" - - Scenario: Card with entity action, entity must not reload - ModalExecutor - When I press button "Edit" - Then Modal is open with text "Edit Country" - Then I check if input value for ".modal.front input" match text "Czech Republic NO RELOAD" - Then I hide js modal - - Scenario: Card with entity action, entity must not reload - JsCallbackExecutor, exception is displayed - When I press button "Delete" - Then Modal is open with text "Please go ahead. Demo mode does not really delete data." - When I press Modal button "Ok" - Then Modal is open with text "Atk4\Data\Exception: User action cannot be executed when unrelated fields are dirty" - - Scenario: - Given I am on "interactive/card-action.php" - When I press button "Send Note" - Then Modal is open with text "Note" in selector "label" - When I fill in "note" with "This is a test note" - Then I press Modal button "Notify" - Then Toast display should contain text "This is a test note" diff --git a/tests-behat/checkbox.feature b/tests-behat/checkbox.feature deleted file mode 100644 index 0a77618015..0000000000 --- a/tests-behat/checkbox.feature +++ /dev/null @@ -1,12 +0,0 @@ -Feature: Checkbox - - Scenario: - Given I am on "form-control/checkbox.php" - When I press button "Save" - Then Toast display should contain text '{ "test": false, "test_checked": true, "also_checked": true }' - - When I click using selector "//div.ui.checkbox[not(self::*.checked)][input[@name='test']]" - When I click using selector "//div.ui.checkbox.checked[input[@name='test_checked']]" - When I click using selector "//div.ui.checkbox.checked[input[@name='also_checked']]" - When I press button "Save" - Then Toast display should contain text '{ "test": true, "test_checked": false, "also_checked": false }' diff --git a/tests-behat/crud.feature b/tests-behat/crud.feature deleted file mode 100644 index d50e496a43..0000000000 --- a/tests-behat/crud.feature +++ /dev/null @@ -1,113 +0,0 @@ -Feature: Crud - - Scenario: - Given I am on "_unit-test/crud.php" - - Scenario: add - Then I press button "Add Country" - Then I fill in "atk_fp_country__name" with "Test" - Then I fill in "atk_fp_country__iso" with "TT" - Then I fill in "atk_fp_country__iso3" with "TTT" - Then I fill in "atk_fp_country__numcode" with "123" - Then I fill in "atk_fp_country__phonecode" with "1" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "add" with "Test" entity was executed.' - - Scenario: search - Then I search grid for "united kingdom" - Then I should see "United Kingdom" - Then I should not see "No records" - - Scenario: add after search and sort - # cover https://github.com/atk4/ui/commit/d42b07fbcc - # TODO generalize JS reload with component reload - When I click using selector "//th.sortable[//div[text()='Name']]" - Then I should see "United Kingdom" - Then I press button "Add Country" - Then I fill in "atk_fp_country__name" with "Test 2" - Then I fill in "atk_fp_country__iso" with "TT" - Then I fill in "atk_fp_country__iso3" with "TTT" - Then I fill in "atk_fp_country__numcode" with "123" - Then I fill in "atk_fp_country__phonecode" with "1" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "add" with "Test 2" entity was executed.' - # TODO add should keep search - # related with https://github.com/atk4/ui/issues/526 (list newly added record first) - Then I search grid for "united kingdo" - - Scenario: edit - Then I press button "Edit" - Then Modal is open with text "Edit Country" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "edit" with "United Kingdom" entity was executed.' - # make sure search query stick - Then I should see "United Kingdom" - - Scenario: edit - with unlocked DB - # hotfix "element not interactable" - # TODO modal should be always fully (re)loaded on open and fully destroyed once it is closed - # https://github.com/atk4/ui/issues/1928 - Given I am on "_unit-test/crud.php" - Then I search grid for "united kingdom" - - Then I should not see "My United Kingdom" - When I persist DB changes across requests - Then I press button "Edit" - Then Modal is open with text "Edit Country" - Then I fill in "atk_fp_country__name" with "My United Kingdom" - Then I press Modal button "Save" - Then Toast display should contain text 'Record has been saved!' - Then I should see "My United Kingdom" - - Scenario: delete - Then I press button "Delete" - Then I press Modal button "Ok" - Then Toast display should contain text 'Country action "delete" with "United Kingdom" entity was executed.' - Then I should not see "United Kingdom" - - Scenario: search across multiple columns - Then I search grid for "420 zech" - Then I should see "Czech Republic" - - Scenario: search no match - Then I search grid for "420X zech" - Then I should see "No records" - Then I should not see "Czech Republic" - - Scenario: Modal in modal - Given I am on "_unit-test/crud-nested.php" - - Then I click using selector "(//div.ui.button[i.icon.book])[1]" - Then Modal is open with text "Edit product category" - Then I click using selector "(//div.modal.active//div.ui.button[i.icon.edit])[1]" - Then Modal is open with text "Edit Product" - Then input "atk_fp_product__name" value should start with "Mustard" - When I press Modal button "Save" - Then I click close modal - - Then I click using selector "(//div.ui.button[i.icon.book])[1]" - Then Modal is open with text "Edit product category" - Then I click using selector "(//div.modal.active//div.ui.button[i.icon.edit])[2]" - Then Modal is open with text "Edit Product" - Then input "atk_fp_product__name" value should start with "Ketchup" - When I press Modal button "Save" - Then I click close modal - - Then I click using selector "(//div.ui.button[i.icon.book])[2]" - Then Modal is open with text "Edit product category" - Then I click using selector "(//div.modal.active//div.ui.button[i.icon.edit])[1]" - Then Modal is open with text "Edit Product" - Then input "atk_fp_product__name" value should start with "Cola" - When I press Modal button "Save" - Then I click close modal - - Scenario: edit /w array persistence (strict comparison) - Given I am on "collection/crud3.php" - Then I click using selector "//table//tr[3]//i.icon.edit" - Then Modal is open with text "Edit Country" - Then I press Modal button "Save" - Then Toast display should contain text "Record has been saved!" - - Scenario: delete /w array persistence (strict comparison) - Then I click using selector "//table//tr[3]//i.icon.trash" - Then Toast display should contain text "Record has been deleted!" diff --git a/tests-behat/dropdown.feature b/tests-behat/dropdown.feature deleted file mode 100644 index dde9ebc9fe..0000000000 --- a/tests-behat/dropdown.feature +++ /dev/null @@ -1,17 +0,0 @@ -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." diff --git a/tests-behat/filter.feature b/tests-behat/filter.feature deleted file mode 100644 index 65ed0c3fa3..0000000000 --- a/tests-behat/filter.feature +++ /dev/null @@ -1,34 +0,0 @@ -Feature: Table Filter - - Scenario: - Given I am on "collection/tablefilter.php" - Then I should see "Australia" - Then I click filter column name "atk_fp_country__name" - When I fill in "value" with "united kingdom" - Then I press button "Set" - Then I should not see "Australia" - Then I should see "United Kingdom" - Then I click filter column name "atk_fp_country__phonecode" - When I fill field using "//div.popup[5]//input[@name='value']" with "44" - When I click using selector "//div.popup[5]//div[text()='Set']" - Then I should see "United Kingdom" - Then I click filter column name "atk_fp_country__phonecode" - When I fill field using "//div.popup[5]//input[@name='value']" with "4" - When I click using selector "//div.popup[5]//div[text()='Set']" - Then I should not see "United Kingdom" - Then I should see "No records" - Then I click filter column name "atk_fp_country__phonecode" - When I click using selector "//div.popup[5]//div[text()='Clear']" - Then I should not see "No records" - Then I should see "United Kingdom" - Then I click filter column name "is_uk" - Then I select value "Is No" in lookup "//div.popup[6]//input[@name='op']" - When I click using selector "//div.popup[6]//div[text()='Set']" - Then I should see "No records" - Then I click filter column name "is_uk" - Then I select value "Is Yes" in lookup "//div.popup[6]//input[@name='op']" - When I click using selector "//div.popup[6]//div[text()='Set']" - Then I should see "United Kingdom" - Then I press button "Clear Filters" - Then I should not see "United Kingdom" - Then I should see "Australia" diff --git a/tests-behat/form.feature b/tests-behat/form.feature deleted file mode 100644 index 3d568f8903..0000000000 --- a/tests-behat/form.feature +++ /dev/null @@ -1,91 +0,0 @@ -Feature: Form - - Scenario: test form response - Given I am on "form/form.php" - When I fill in "email" with "foo@bar" - When I press button "Subscribe" - Then I should see "Subscribed foo@bar to newsletter." - - When I press button "Compare Date" - Then I should see "Date field vs control:" - Then I hide js modal - - When I click tab with title "Handler Output" - When I fill in "email1" with "foo@bar" - When I press button "Save1" - Then I should see "some error action" - When I press button "Save1" - Then I should see "some error action" - When I fill in "email1" with "foo@bar2" - Then I should not see "some error action" - When I fill in "email1" with "pass@bar" - Then I should not see "some error action" - When I press button "Save1" - Then I should not see "some error action" - - When I fill in "email2" with "foo@bar" - When I press button "Save2" - Then I should see "form was successful" - - When I fill in "email3" with "foo@bar" - When I press button "Save3" - Then I should see "some header" - Then I should see "some text" - Then I hide js modal - - When I fill in "email5" with "foo@bar" - When I press button "Save5" - Then input "email5" value should start with "random is" - - Scenario: form exception is displayed - When I click tab with title "Handler Safety" - When I press button "SaveE1" - Then Modal is open with text "Error: Cannot use object of type stdClass as array" - Then I hide js modal - When I press button "SaveE2" - Then Modal is open with text "Atk4\Core\Exception: Test exception I." - Then I hide js modal - When I press button "Modal Test" - Then I check if input value for "#mf input[name='email']" match text "" - When I fill Modal field "email" with "ee" - Then I check if input value for "#mf input[name='email']" match text "ee" - When I press Modal button "Save" - Then Modal is open with text "Atk4\Core\Exception: Test exception II." - Then I hide js modal - Then I check if input value for "#mf input[name='email']" match text "ee" - Then I hide js modal - When I press button "Modal Test" - Then I check if input value for "#mf input[name='email']" match text "" - When I press Modal button "Save" - Then Modal is open with text "Atk4\Core\Exception: Test exception II." - Then I hide js modal - When I press Modal button "Save" - Then Modal is open with text "Atk4\Core\Exception: Test exception II." - - Scenario: test conditional form - Given I am on "form/jscondform.php" - Then I should not see "Phone 2" - Then I should not see "Phone 3" - When I fill in "phone1" with "1234" - Then I should not see "Phone 2" - When I fill in "phone1" with "12345" - Then I should see "Phone 2" - When I fill in "phone2" with "12345" - Then I should see "Phone 3" - When I fill in "phone1" with "12345x" - Then I should not see "Phone 2" - Then I should not see "Phone 3" - - Then I should not see "Check all language that apply" - Then I should not see "Css" - When I click using selector "//label[text()='I am a developer']" - Then I should see "Check all language that apply" - Then I should see "Css" - When I click using selector "//label[text()='I am a developer']" - Then I should not see "Check all language that apply" - Then I should not see "Css" - - Scenario: empty POST - Given I am on "_unit-test/form-empty.php" - When I press button "Save" - Then Toast display should contain text "Post ok" diff --git a/tests-behat/grid.feature b/tests-behat/grid.feature deleted file mode 100644 index cb3743e76c..0000000000 --- a/tests-behat/grid.feature +++ /dev/null @@ -1,104 +0,0 @@ -Feature: Grid - - Scenario: search - Given I am on "collection/grid.php" - Then I search grid for "kingdom" - Then I should see "United Kingdom" - Then I press button "Test" - Then Toast display should contain text "United Kingdom" - Then I click using selector "i.atk-remove-icon" - Then I should not see "United Kingdom" - Then I search grid for "kingdom" - Then I should see "United Kingdom" - When I write "[escape]" into selector "input.atk-grid-search" - Then I should not see "United Kingdom" - - Scenario: search no ajax - Given I am on "collection/grid.php?no-ajax=1" - Then I search grid for "kingdom" - Then PATCH MINK the url should match "~_q=kingdom~" - Then I should see "United Kingdom" - - Scenario: Checkbox click event must not bubble to row click - Given I am on "_unit-test/grid-rowclick.php" - When I click using selector "//div[@id='grid']//tr[2]//td[2]" - Then Toast display should contain text "Clicked on row" - When I click using selector "//div[@id='grid']//tr[2]//div.ui.checkbox" - Then No toast should be displayed - When I click using selector "//div[@id='grid']//tr[2]//div.ui.button[text()='Action Button']" - Then Toast display should contain text "Clicked Action Button" - When I click using selector "//div[@id='grid']//tr[2]//div.ui.button[text()='Action Modal']" - Then No toast should be displayed - Then I should see "Clicked Action Modal: Albania" - Then I hide js modal - When I click using selector "//div[@id='grid']//tr[2]//div.ui.dropdown[div[text()='Actions...']]" - Then No toast should be displayed - When I click using selector "//div[@id='grid']//tr[2]//div.ui.dropdown[div[text()='Actions...']]//div.menu/div[text()='Action MenuItem']" - Then Toast display should contain text "Clicked Action MenuItem" - Then PATCH MINK the url should match "~_unit-test/grid-rowclick.php$~" - When I click using selector "//div[@id='grid']//tr[2]//a" - Then No toast should be displayed - Then PATCH MINK the url should match "~_unit-test/grid-rowclick.php#test~" - - Scenario: popup column header - Given I am on "collection/tablecolumnmenu.php" - Then I should not see "Name popup" - When I click using selector "(//th//div.atk-table-dropdown)[1]/i" - Then I should see "Name popup" - Then I should not see "This popup is loaded dynamically" - When I click using selector "(//th//div.atk-table-dropdown)[2]/i" - Then I should see "This popup is loaded dynamically" - When I click using selector "(//th//div.atk-table-dropdown)[3]/div.dropdown" - When I click using selector "(//th//div.atk-table-dropdown)[3]/div.dropdown/div.menu/div.item[2]" - Then Toast display should contain text "Title item: Reorder" - - Scenario: sort - Given I am on "collection/grid.php" - When I click using selector "//th.sortable[//div[text()='Name']]" - Then I should see "Andorra" - Then I should not see "Zambia" - When I click using selector "//th.sortable[//div[text()='Name']]" - Then I should see "Zambia" - Then I should not see "Andorra" - When I click using selector "//th.sortable[//div[text()='Name']]" - When I click using selector "//th.sortable[//div[text()='Name']]" - Then I should see "Andorra" - Then I should not see "Zambia" - - Scenario: IPP selector - Then I should see "Andorra" - Then I should not see "China" - Then I should not see "Zambia" - When I click using selector "//div.ui.dropdown.compact" - When I click using selector "//div.ui.dropdown.compact//div.item[text()='100']" - Then I should see "Andorra" - Then I should see "China" - Then I should not see "Zambia" - When I click using selector "//div.ui.dropdown.compact" - When I click using selector "//div.ui.dropdown.compact//div.item[text()[normalize-space()='1 000']]" - Then I should see "Andorra" - Then I should see "China" - Then I should see "Zambia" - - Scenario: Bulk action - Given I am on "collection/grid.php" - Then I press button "Show selected" - Then Toast display should contain text "Selected: #" - When I click using selector "//tr[5]//div.ui.checkbox" - When I click using selector "//tr[8]//div.ui.checkbox" - Then I press button "Show selected" - Then Toast display should contain text "Selected: 5, 8#" - - Scenario: Bulk modal action - Given I am on "collection/grid.php" - Then I press button "Delete selected" - Then Modal is open with text "The selected records will be permanently deleted: #" - Then I press button "Delete" - Then I should see "Success" - Then I click close modal - When I click using selector "//tr[5]//div.ui.checkbox" - When I click using selector "//tr[8]//div.ui.checkbox" - Then I press button "Delete selected" - Then Modal is open with text "The selected records will be permanently deleted: 5, 8#" - Then I press button "Delete" - Then I should see "Success" diff --git a/tests-behat/js.feature b/tests-behat/js.feature deleted file mode 100644 index 2c80a99f4d..0000000000 --- a/tests-behat/js.feature +++ /dev/null @@ -1,33 +0,0 @@ -Feature: JS - - Scenario: - Given I am on "javascript/js.php" - - Then I don't see button "Hidden Button" - - Then I see button "Hide on click Button" - When I press button "Hide on click Button" - Then I don't see button "Hide on click Button" - - Then I see button "B" - When I press button "Hide button B" - Then I don't see button "B" - Then I see button "Hide button B" - - Then I see button "C" - When I press button "Hide button C and self" - Then I don't see button "C" - Then I don't see button "Hide button C and self" - - # "//div.ui.header[text()[normalize-space()='Callbacks']]/following-sibling::div.ui.button[1]" is too long for nice CI output - When I check if text in "//div.ui.button[8]" match text "Callback Test" - When I press button "Callback Test" - # "//div.ui.header[text()[normalize-space()='Callbacks']]/following-sibling::div.ui.button[1]" is too long for nice CI output - Then I check if text in "//div.ui.button[8]" match regex "~^\d+$~" - - Scenario: JsCallback exception is displayed - When I press button "failure" - Then Modal is open with text "Atk4\Ui\Exception: Everything is bad" - Then I hide js modal - When I press button "failure" - Then Modal is open with text "Atk4\Ui\Exception: Everything is bad" diff --git a/tests-behat/late-error.feature b/tests-behat/late-error.feature deleted file mode 100644 index c0d318df1d..0000000000 --- a/tests-behat/late-error.feature +++ /dev/null @@ -1,20 +0,0 @@ -Feature: Late error handling - - Scenario: - Given I am on "_unit-test/late-output-error.php" - When I press button "Test LateOutputError I: Headers already sent" - Then Modal is open with text "API Server Error" - Then Modal is open with text "!! FATAL UI ERROR: Headers already sent, more headers cannot be set at this stage !!" - Then I hide js modal - - Scenario: - When I press button "Test LateOutputError II: Unexpected output detected" - Then Modal is open with text "API Server Error" - Then Modal is open with text "unmanaged output !! FATAL UI ERROR: Unexpected output detected !!" - Then I hide js modal - - Scenario: - When I press button "Test LateOutputError III: Unexpected output detected" - Then Modal is open with text "API Server Error" - Then Modal is open with text "unmanaged output !! FATAL UI ERROR: Unexpected output detected !!" - Then I hide js modal diff --git a/tests-behat/loader.feature b/tests-behat/loader.feature deleted file mode 100644 index 7543161b74..0000000000 --- a/tests-behat/loader.feature +++ /dev/null @@ -1,24 +0,0 @@ -Feature: Loader - - Scenario: - Given I am on "interactive/loader2.php" - When I click using selector "//td[text()='American Samoa']" - Then I check if input value for "input[name='atk_fp_country__iso3']" match text "ASM" - When I click using selector "//td[text()='Argentina']" - Then I check if input value for "input[name='atk_fp_country__iso3']" match text "ARG" - - Scenario: - Given I am on "collection/multitable.php" - Then I should see "src" - Then I should not see "HtmlTemplate" - When I click using selector "//td[text()='src']" - Then I should see "HtmlTemplate" - Then I should not see "TagTree.php" - When I click using selector "//td[text()='HtmlTemplate']" - Then I should see "TagTree.php" - Then I should not see "No records." - When I click using selector "//td[text()='TagTree.php']" - Then I should see "src" - Then I should see "HtmlTemplate" - Then I should see "TagTree.php" - Then I should see "No records." diff --git a/tests-behat/lookup.feature b/tests-behat/lookup.feature deleted file mode 100644 index 89ad9f887c..0000000000 --- a/tests-behat/lookup.feature +++ /dev/null @@ -1,30 +0,0 @@ -Feature: Lookup - - Scenario: Testing lookup in modal - Given I am on "_unit-test/lookup.php" - Then I press button "Edit" - Then I select value "Dairy" in lookup "atk_fp_product__product_category_id" - # '6f3c91cf51e02fd5' = substr(md5('product_sub_category'), 0, 16) - Then I select value "Yogourt" in lookup "atk_fp_product__6f3c91cf51e02fd5_id" - Then I press modal button "Save" - Then Toast display should contain text 'Dairy - Yogourt' - - Scenario: Testing lookup in VirtualPage - Given I am on "_unit-test/lookup-virtual-page.php" - Then I press button "Add Category" - Then I select value "Beverages" in lookup "category" - Then I press Modal button "Save" - Then Toast display should contain text "Beverages" - - Scenario: Testing lookup add - Given I am on "form-control/lookup.php" - Then I check if text in "//div.text[../input[@name='country2']]" match text "" - Then I press button "Add New" - When I fill in "atk_fp_country__name" with "Plusia" - When I fill in "atk_fp_country__iso" with "AA" - When I fill in "atk_fp_country__iso3" with "AAA" - When I fill in "atk_fp_country__numcode" with "88" - When I fill in "atk_fp_country__phonecode" with "8" - Then I press Modal button "Save" - Then Toast display should contain text 'Country action "add" with "Plusia" entity was executed.' - Then I check if text in "//div.text[../input[@name='country2']]" match text "Plusia" diff --git a/tests-behat/modal-error.feature b/tests-behat/modal-error.feature deleted file mode 100644 index 11f924c0d3..0000000000 --- a/tests-behat/modal-error.feature +++ /dev/null @@ -1,28 +0,0 @@ -Feature: Nested modals /w error handling - - Scenario: Modal with PHP error exception is displayed - Given I am on "_unit-test/modal-error.php" - When I press button "Test" - When I press button "Test Modal load PHP error" - Then Modal is open with text "Error: Exception from Modal" - Then I hide js modal - When I press button "Test Modal load PHP error" - Then Modal is open with text "Error: Exception from Modal" - Then I hide js modal - - Scenario: Modal with JS error - When I press button "Test Modal load JS error" - Then Modal is open with text "API JavaScript Error" - Then Modal is open with text 'Fomantic-UI "modal.onShow" setting cannot be customized outside atk' - Then I hide js modal - When I press button "Test Modal load JS error" - Then Modal is open with text 'Fomantic-UI "modal.onShow" setting cannot be customized outside atk' - Then I hide js modal - - Scenario: ModalExecutor with PHP error exception is displayed - When I press button "Test ModalExecutor load PHP error" - Then Modal is open with text "Atk4\Data\Exception: Record with specified ID was not found" - Then I hide js modal - When I press button "Test ModalExecutor load PHP error" - Then Modal is open with text "Atk4\Data\Exception: Record with specified ID was not found" - Then I hide js modal diff --git a/tests-behat/modal.feature b/tests-behat/modal.feature deleted file mode 100644 index be6ab96a92..0000000000 --- a/tests-behat/modal.feature +++ /dev/null @@ -1,11 +0,0 @@ -Feature: Modal - - Scenario: Modal - Given I am on "interactive/modal.php" - When I press button "Open Lorem Ipsum" - Then Modal is open with text "Showing lorem ipsum" - - Scenario: ModalExecutor Reload - Given I am on "_unit-test/modal-reload.php" - When I press button "Test" - Then Modal is open with text "Reload success" diff --git a/tests-behat/multiline.feature b/tests-behat/multiline.feature deleted file mode 100644 index 501a19e624..0000000000 --- a/tests-behat/multiline.feature +++ /dev/null @@ -1,39 +0,0 @@ -Feature: Multiline - - Scenario: - Given I am on "form-control/multiline.php" - When I fill field using "div[name=-atk_fp_multiline_item__qty] input" with "0" - Then the "div[name=-atk_fp_multiline_item__total_sql]" element should contain "0" - Then the "div[name=-atk_fp_multiline_item__total_php]" element should contain "0" - When I fill field using "div[name=-atk_fp_multiline_item__qty] input" with "2" - When I fill field using "div[name=-atk_fp_multiline_item__box] input" with "67" - Then the "div[name=-atk_fp_multiline_item__total_sql]" element should contain "134" - Then the "div[name=-atk_fp_multiline_item__total_php]" element should contain "134" - Then I press button "Save" - Then Toast display should contain text '"atk_fp_multiline_item__box": "67", "atk_fp_multiline_item__total_sql": "134" }' - - Scenario: add row - When I click using selector "//tfoot//button[i.plus.icon]" - Then I should not see "Must not be empty" - Then I press button "Save" - Then I should see "Must not be empty" - When I fill field using "//tr[3]//div[@name='-atk_fp_multiline_item__item']/input" with "Paper" - When I fill field using "//tr[3]//div[@name='-atk_fp_multiline_item__qty']/input" with "3" - When I fill field using "//tr[3]//div[@name='-atk_fp_multiline_item__box']/input" with "5" - Then I check if text in "//tr[3]//div[@name='-atk_fp_multiline_item__total_sql']" match text "15" - Then I check if text in "//tr[3]//div[@name='-atk_fp_multiline_item__total_php']" match text "15" - Then I press button "Save" - Then Toast display should contain text '"atk_fp_multiline_item__box": "5", "atk_fp_multiline_item__total_sql": "15" } ]' - Then I should not see "Must not be empty" - - Scenario: delete row - When I click using selector "//tr[3]//input[@type='checkbox']" - When I click using selector "//tfoot//button[i.trash.icon]" - Then I press button "Save" - Then Toast display should contain text '"atk_fp_multiline_item__box": "100", "atk_fp_multiline_item__total_sql": "200" } ]' - - Scenario: delete all rows - When I click using selector "//thead//input[@type='checkbox']" - When I click using selector "//tfoot//button[i.trash.icon]" - Then I press button "Save" - Then Toast display should contain text '[]' diff --git a/tests-behat/radio.feature b/tests-behat/radio.feature deleted file mode 100644 index 54facd42f7..0000000000 --- a/tests-behat/radio.feature +++ /dev/null @@ -1,48 +0,0 @@ -Feature: Radio - - Scenario: - Given I am on "form-control/form6.php" - When I press button "Save" - Then Toast display should contain text '"enum_d": "male", "enum_r": "male"' - Then Toast display should contain text '"list_d": "1", "list_r": "1"' - Then Toast display should contain text '"int_d": "7 000", "int_r": "7 000"' - Then Toast display should contain text '"string_d": "M", "string_r": "M"' - Then Element "//input[@name='int_r' and @checked='checked']" attribute "value" should contain text "7000" - - Then I select value "female" in lookup "enum_d" - When I click using selector "//div.ui.radio[not(self::*.checked)][input[@name='enum_r'] and label[text()='female']]" - Then I select value "female" in lookup "list_d" - When I click using selector "//div.ui.radio[not(self::*.checked)][input[@name='list_r'] and label[text()='female']]" - When I press button "Save" - Then Toast display should contain text '"enum_d": "female", "enum_r": "female"' - Then Toast display should contain text '"list_d": "0", "list_r": "0"' - Then Toast display should contain text '"int_d": "7 000", "int_r": "7 000"' - Then Toast display should contain text '"string_d": "M", "string_r": "M"' - Then I select value "female" in lookup "int_d" - When I click using selector "//div.ui.radio[not(self::*.checked)][input[@name='int_r'] and label[text()='female']]" - Then I select value "female" in lookup "string_d" - When I click using selector "//div.ui.radio[not(self::*.checked)][input[@name='string_r'] and label[text()='female']]" - When I press button "Save" - Then Toast display should contain text '"enum_d": "female", "enum_r": "female"' - Then Toast display should contain text '"list_d": "0", "list_r": "0"' - Then Toast display should contain text '"int_d": "5", "int_r": "5"' - Then Toast display should contain text '"string_d": "F", "string_r": "F"' - - Then I select value "" in lookup "enum_d" - When I click using selector "//div.ui.radio.checked[input[@name='enum_r']]" - Then I select value "" in lookup "list_d" - When I click using selector "//div.ui.radio.checked[input[@name='list_r']]" - When I press button "Save" - Then Toast display should contain text '"enum_d": null, "enum_r": null' - Then Toast display should contain text '"list_d": null, "list_r": null' - Then Toast display should contain text '"int_d": "5", "int_r": "5"' - Then Toast display should contain text '"string_d": "F", "string_r": "F"' - Then I select value "" in lookup "int_d" - When I click using selector "//div.ui.radio.checked[input[@name='int_r']]" - Then I select value "" in lookup "string_d" - When I click using selector "//div.ui.radio.checked[input[@name='string_r']]" - When I press button "Save" - Then Toast display should contain text '"enum_d": null, "enum_r": null' - Then Toast display should contain text '"list_d": null, "list_r": null' - Then Toast display should contain text '"int_d": null, "int_r": null' - Then Toast display should contain text '"string_d": null, "string_r": null' diff --git a/tests-behat/rightpanel.feature b/tests-behat/rightpanel.feature deleted file mode 100644 index 88abeecfc9..0000000000 --- a/tests-behat/rightpanel.feature +++ /dev/null @@ -1,16 +0,0 @@ -Feature: RightPanel - - Scenario: PanelReload - Given I am on "layout/layout-panel.php" - When I press button "Button 1" - Then I should see "button #1" - Then I press button "Reload Myself" - Then I press button "Complete" - Then I should see "Completed using button #1" - - Scenario: PanelModelAction - Given I am on "layout/layout-panel.php" - Then I click using selector "(//div.atk-card)[1]" - When I press button "User Confirmation" - When I press Modal button "Ok" - Then Toast display should contain text "Confirm country" diff --git a/tests-behat/scopebuilder.feature b/tests-behat/scopebuilder.feature deleted file mode 100644 index d68d119cb1..0000000000 --- a/tests-behat/scopebuilder.feature +++ /dev/null @@ -1,24 +0,0 @@ -Feature: ScopeBuilder - - Scenario: test ScopeBuilder rendering of model scope, exception is displayed - Given I am on "_unit-test/scope-builder.php" - Then rule "atk_fp_stat__project_budget" operator is ">=" and value is "€ 1 000.00" - Then rule "atk_fp_stat__project_name" operator is "matches regular expression" and value is "[a-zA-Z]" - Then select rule "atk_fp_stat__currency" operator is "equals" and value is "USD" - # '205293a6ce6372a1' = substr(md5('client_country_iso'), 0, 16) - Then reference rule "atk_fp_stat__205293a6ce6372a1" operator is "equals" and value is "Brazil" - Then date rule "atk_fp_stat__start_date" operator is "is on" and value is "Oct 22, 2020" - Then date rule "atk_fp_stat__finish_time" operator is "is not on" and value is "22:22:00" - Then bool rule "atk_fp_stat__is_commercial" has value "No" - Then I check if input value for "qb" match text in "p.atk-expected-input-result" - When I press button "Save" - Then Modal is open with text "TypeError: Unexpected non-scalar value" - # TODO uncomment once "Object serialization is not supported" is fixed - # Then I check if text in "p.atk-expected-word-result" match text in ".atk-scope-builder-response" - - Scenario: test ScopeBuilder query string to model scope - Given I am on "_unit-test/scope-builder-to-query.php" - Then container ".ui.table tbody tr" should display "1" item(s) - Then I should see "Milk 1%" - Then I should see "Dairy" - Then I should see "Lowfat Milk" diff --git a/tests-behat/scroll.feature b/tests-behat/scroll.feature deleted file mode 100644 index c660fd606f..0000000000 --- a/tests-behat/scroll.feature +++ /dev/null @@ -1,50 +0,0 @@ -Feature: Dynamic scroll - - Scenario: - Given I am on "interactive/scroll-lister.php" - Then I should see "Argentina" - Then I should not see "Denmark" - When I scroll to bottom - Then I should see "Denmark" - When I scroll to bottom - When I scroll to bottom - When I scroll to bottom - When I scroll to bottom - When I scroll to bottom - When I scroll to bottom - Then I should not see "South Sudan" - When I scroll to bottom - Then I should see "South Sudan" - When I scroll to bottom - Then I should see "South Sudan" - Then I should see "Denmark" - - Scenario: with row events - Given I am on "_unit-test/scroll.php" - Then I should see "Argentina" - Then I should not see "Denmark" - When I click using selector "//tr[td[text()='Austria']]//td[2]" - Then Toast display should contain text "row clicked: 218000014" - When I click using selector "//tr[td[text()='Austria']]//i.icon.bell" - Then Toast display should contain text "action clicked: 218000014" - Then I should see "Argentina" - Then I should not see "Denmark" - When I scroll to bottom - Then I should see "Denmark" - When I click using selector "//tr[td[text()='Denmark']]//td[2]" - Then Toast display should contain text "row clicked: 218000058" - When I click using selector "//tr[td[text()='Denmark']]//i.icon.bell" - Then Toast display should contain text "action clicked: 218000058" - When I scroll to top - When I click using selector "//tr[td[text()='Austria']]//td[2]" - Then Toast display should contain text "row clicked: 218000014" - When I click using selector "//tr[td[text()='Austria']]//i.icon.bell" - Then Toast display should contain text "action clicked: 218000014" - - Scenario: with fixed header - Given I am on "interactive/scroll-grid-container.php" - Then I should see "Brazil" - Then I should not see "Canada" - When PATCH DRIVER I click using selector "//table//tr/td[text()='Brazil']" - Then I should see "Brazil" - Then I should see "Canada" diff --git a/tests-behat/sortable.feature b/tests-behat/sortable.feature deleted file mode 100644 index 59a2f32b2e..0000000000 --- a/tests-behat/sortable.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: Sortable / Draggable - - Scenario: drag reorder list - Given I am on "interactive/jssortable.php" - When I drag selector "//li[text()[normalize-space()='Argentina']]" onto selector "//li[text()[normalize-space()='Afghanistan']]" - Then Toast display should contain text "Argentina moved from position 9 to 0" - When I drag selector "//li[text()[normalize-space()='Bahamas']]" onto selector "//li[text()[normalize-space()='Bahamas']]" - Then No toast should be displayed - When I drag selector "//li[text()[normalize-space()='Bahamas']]" onto selector "//li[text()[normalize-space()='Argentina']]" - Then Toast display should contain text "Bahamas moved from position 15 to 0" - - Scenario: drag reorder grid - When I drag selector "//tr[td[2][text()='Albania']]/td[1]/i" onto selector "//tr[td[2][text()='Andorra']]/td[1]/i" - Then Toast display should contain text "New order: 1 - 3 - 4 - 5 - 2 - 6" - - Scenario: drag column resize - Given I am on "collection/table2.php" - When I drag selector "(//div.grip-resizable)[2]" onto selector "(//div.grip-resizable)[1]" - Then Toast display should contain text 'New widths: { "action": "wide", "amount": "narrow", "amount_copy": "wide" }' diff --git a/tests-behat/sse.feature b/tests-behat/sse.feature deleted file mode 100644 index 39c7265895..0000000000 --- a/tests-behat/sse.feature +++ /dev/null @@ -1,15 +0,0 @@ -Feature: SSE - - Scenario: - Given I am on "interactive/sse.php" - When I press button "Turn On" - When I press button "Turn Off" - # TODO test SSE result compatible with Slow Chrome CI job - # Then I should see "20%" - - Scenario: - Then I should not see "This is my new text!" - When I press button "Click me to change my text" - When I press Modal button "Ok" - # TODO wait until SSE is complete - # Then I should see "This is my new text!" diff --git a/tests-behat/tab.feature b/tests-behat/tab.feature deleted file mode 100644 index 1b6fd481cf..0000000000 --- a/tests-behat/tab.feature +++ /dev/null @@ -1,8 +0,0 @@ -Feature: Tab - - Scenario: - Given I am on "interactive/tabs.php" - Then Active tab should be "Default Active Tab" - Then I should see "This is the active tab by default" - Then I click tab with title "Dynamic Lorem Ipsum" - Then I should see "you will see a different text" diff --git a/tests-behat/tree-item-selector.feature b/tests-behat/tree-item-selector.feature deleted file mode 100644 index d463bbed95..0000000000 --- a/tests-behat/tree-item-selector.feature +++ /dev/null @@ -1,29 +0,0 @@ -Feature: TreeItemSelector - - Scenario: single - Given I am on "form-control/tree-item-selector.php" - Then I click using selector "(//div.atk-tree-loader)[2]//div[text()='Cleaner']" - Then Toast display should contain text "Selected: Cleaner" - Then I click using selector "(//div.atk-tree-loader)[2]//div[text()='Cleaner']" - Then No toast should be displayed - Then I click using selector "(//div.atk-tree-loader)[2]//i.icon.caret.right[../div/div[text()='Electronics']]" - Then No toast should be displayed - Then I click using selector "(//div.atk-tree-loader)[2]//div[text()='Phone']" - Then No toast should be displayed - - Scenario: multiple - Then I click using selector "(//div.atk-tree-loader)[1]//div[text()='Cleaner']" - Then Toast display should contain text "Appliances" - Then I click using selector "(//div.atk-tree-loader)[1]//div[text()='Cleaner']" - Then Toast display should contain text "Appliances" - Then Toast display should contain text "Cleaner" - Then I click using selector "(//div.atk-tree-loader)[1]//i.icon.caret.right[../div/div[text()='Electronics']]" - Then No toast should be displayed - Then I click using selector "(//div.atk-tree-loader)[1]//div[text()='Phone']" - Then Toast display should contain text "Appliances" - Then Toast display should contain text "Electronics > Phone > iPhone" - Then I click using selector "(//div.atk-tree-loader)[1]//div[text()='Phone']" - Then Toast display should contain text "Appliances" - Then I click using selector "(//div.atk-tree-loader)[1]//div[text()='Electronics']" - Then Toast display should contain text "Appliances" - Then Toast display should contain text "Electronics > Tv" diff --git a/tests-behat/upload.feature b/tests-behat/upload.feature deleted file mode 100644 index e4111779bc..0000000000 --- a/tests-behat/upload.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: Upload - - Scenario: - Given I am on "form-control/upload.php" - When I select file input "file" with "Foo" as "bar.txt" - Then Toast display should contain text "(name: bar.txt, md5: 1356c67d7ad1638d816bfb822dd2c25d)" - - When I select file input "file" with "Žlutý kůň" as "$kůň" - Then Toast display should contain text "(name: $kůň, md5: b047fb155be776f5bbae061c7b08cdf0)" - - When I click using selector "//div.action[.//input[@name='file']]//div.button" - Then Toast display should contain text "has been removed" - - When I select file input "img" with "Foo" as "bar.png" - Then Toast display should contain text "is uploaded" - - When I click using selector "//div.action[.//input[@name='img']]//div.button" - Then Toast display should contain text "has been removed" - Then Element "//div.action[.//div//input[@name='img']]//img" attribute "src" should contain text "default.png" diff --git a/tests-behat/useraction.feature b/tests-behat/useraction.feature deleted file mode 100644 index 07ee7d158c..0000000000 --- a/tests-behat/useraction.feature +++ /dev/null @@ -1,81 +0,0 @@ -Feature: UserAction executor and UserConfirmation modal - - Scenario: - Given I am on "data-action/jsactions2.php" - When I press button "Callback" - Then Toast display should contain text "callback execute using country" - - Scenario: - When I press button "Argument" - Then Modal is open with text "Age" in selector "label" - When I fill Modal field "age" with "22" - Then I press Modal button "Argument" - Then Toast display should contain text "22 is old enough to visit" - - Scenario: - When I press button "User Confirmation" - When I press Modal button "Ok" - Then Toast display should contain text "Confirm country" - - Scenario: - When I press button "Multi Step" - Then Modal is open with text "Age" in selector "label" - When I fill Modal field "age" with "22" - Then I press Modal button "Next" - Then I press Modal button "Next" - Then Modal is open with text "Gender = m / Age = 22" - Then I press Modal button "Multi Step" - Then Toast display should contain text "Thank you Mr. at age 22" - - Scenario: testing VpExecutor - Given I am on "data-action/jsactions-vp.php" - When I press button "Argument" - Then I should see "Age" - When I fill in "age" with "22" - Then I press button "Argument" - - Scenario: testing return - Then I should see "Assign Model action to button event" - - Scenario: testing multi in virtual page - When I press button "Multi Step" - Then I should see "Age" - When I fill in "age" with "22" - Then I press button "Next" - Then I press button "Next" - Then I should see "Gender = m / Age = 22" - Then I press button "Multi Step" - - Scenario: testing return - Then I should see "Assign Model action to button event" - - Scenario: testing PanelExecutor - Given I am on "data-action/jsactions-panel.php" - When I press button "Argument" - Then Panel is open with text "Age" in selector "label" - When I fill Panel field "age" with "22" - Then I press Panel button "Argument" - Then Toast display should contain text "22 is old enough to visit" - - Scenario: testing multi in panel - When I press button "Multi Step" - Then Panel is open with text "Age" in selector "label" - When I fill Panel field "age" with "22" - Then I press Panel button "Next" - Then I press Panel button "Next" - Then Panel is open with text "Gender = m / Age = 22" - Then I press Panel button "Multi Step" - Then Toast display should contain text "Thank you Mr. at age 22" - - Scenario: testing JsCallbackExecutor with form input argument - Given I am on "data-action/jsactions.php" - When I fill field using "//input[../div[text()='Greet']]" with "Laura" - When I press button "Greet" - Then Toast display should contain text "Hello Laura" - - Scenario: testing JsCallbackExecutor in grid menu - Given I am on "data-action/jsactionsgrid.php" - When I click using selector "//tr[td[text()='Argentina']]//div.ui.dropdown[div[text()='Actions...']]" - Then No toast should be displayed - When I click using selector "//tr[td[text()='Argentina']]//div.ui.dropdown[div[text()='Actions...']]//div.menu/div[text()='Callback']" - Then Toast display should contain text "Success: callback execute using country Argentina" diff --git a/tests-behat/virtual-page.feature b/tests-behat/virtual-page.feature deleted file mode 100644 index da34206adc..0000000000 --- a/tests-behat/virtual-page.feature +++ /dev/null @@ -1,35 +0,0 @@ -Feature: VirtualPage - - Scenario: - Given I am on "interactive/virtual.php" - Then I click link 'More info on Car' - Then I check if text in ".__atk-behat-test-car" match text "Car" - Then I press button "Open Lorem Ipsum" - Then Modal is open with text 'This is yet another modal' - - Scenario: - Given I am on "interactive/virtual.php" - Then I press button 'Load in Modal' - Then Modal is open with text 'Contents of your pop-up here' - Then I click close modal - - Scenario: - Then I click link 'Inside current layout' - Then I check if text in ".__atk-behat-test-content" match text "Contents of your pop-up here" - - Scenario: - Given I am on "interactive/virtual.php" - Then I click link 'On a blank page' - Then I check if text in ".__atk-behat-test-content" match text "Contents of your pop-up here" - - Scenario: - Given I am on "_unit-test/virtual-page.php" - Then I click link 'Open First' - Then I check if text in ".__atk-behat-test-first" match text "First Level Page" - Then I click link 'Open Second' - Then I check if text in ".__atk-behat-test-second" match text "Second Level Page" - Then I click link 'Open Third' - Then I check if text in ".__atk-behat-test-third" match text "Third Level Page" - Then I select value "Beverages" in lookup "category" - Then I press button "Save" - Then Toast display should contain text 'Beverages'