From b8d6e5f7d8b1914c527f3e18e790c353c54ed8f7 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Wed, 6 Jul 2022 08:36:34 +1200 Subject: [PATCH] NEW Test cases for testing GridField. Wrong alert issue --- tests/behat/features/gridfield-search.feature | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/behat/features/gridfield-search.feature diff --git a/tests/behat/features/gridfield-search.feature b/tests/behat/features/gridfield-search.feature new file mode 100644 index 000000000..30fabfdee --- /dev/null +++ b/tests/behat/features/gridfield-search.feature @@ -0,0 +1,23 @@ +Feature: Search in GridField + As an author + I want to search an item in the CMS + So that I see proper result and don't see warning + + Background: + Given the "Company" "Walmart" + And the "Company" "ExxonMobil" + And the "Company" "Test" + And I am logged in with "ADMIN" permissions + And I go to "/admin/gridfield-test-admin" + + Scenario: I can search and go to item + When I press the "Open search and filter" button + And I press the "Advanced" button + Then I should see a "#Form_CompaniesSearchForm_Search_Name.no-change-track" element + And I fill in "SearchBox__Name" with "Walmart" + And I press the "Enter" key in the "SearchBox__Name" field + Then I should see "Walmart" in the "#Form_EditForm" element + But I should not see "ExxonMobil" in the "#Form_EditForm" element + And I should not see "Test" in the "#Form_EditForm" element + And I click "Walmart" in the "#Form_EditForm" element + Then I should see "Walmart" \ No newline at end of file