Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Test cases for testing GridField. Wrong alert issue #1320

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions tests/behat/features/gridfield-search.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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/test"

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"
And I should see "Walmart" in the ".breadcrumbs-wrapper" element