-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEW Test cases for testing GridField. Wrong alert issue
- Loading branch information
Sabina Talipova
committed
Jul 5, 2022
1 parent
ead33f0
commit b8d6e5f
Showing
1 changed file
with
23 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,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" |