Skip to content

Commit

Permalink
Merge branch '1' into 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 23, 2024
2 parents 04e1856 + 5735b41 commit 90f494e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/behat/features/gridfield-toast-messages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Feature: Show toast messages
I want to see toast message in the CMS when I create, edit, delete, publish, unpublish, archive a record

Background:
Given the "Company" "Company A" with "Category"="Other"
Given the "Company" "Company A" with "Category"="Other"
And the "Company" "Company B" with "Category"="Other"
And the "Company" "Company C" with "Category"="Other"
And the "Employee" "Employee A" with "Company"="1"
And the "Employee" "Employee A" with "Company"="3"
And the "Employee" "Employee B" with "Company"="1"
And the "Employee" "Employee C" with "Company"="1"
And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Test ModelAdmin' section" and "TEST_DATAOBJECT_EDIT"
Expand Down Expand Up @@ -38,7 +38,7 @@ Feature: Show toast messages
And I should see a "Archived Company "Company B"" success toast

Scenario: I can see toast message when I successfully delete a record
When I click "Company A" in the "#Form_EditForm" element
When I click "Company C" in the "#Form_EditForm" element
And I click "Employees" in the ".ui-tabs-nav" element
Then I should see "Employee A" in the "#Form_ItemEditForm_Employees" element
And I click "Employee A" in the "#Form_ItemEditForm_Employees" element
Expand All @@ -47,7 +47,7 @@ Feature: Show toast messages
Then I should not see "Employee A" in the "#Form_ItemEditForm_Employees" element

Scenario: I can see toast message when I successfully delete a record by clicking the Unlink button in action menu
When I click "Company A" in the "#Form_EditForm" element
When I click "Company C" in the "#Form_EditForm" element
And I click "Employees" in the ".ui-tabs-nav" element
Then I should see "Employee A" in the "#Form_ItemEditForm_Employees" element
And I press the "View actions" button
Expand All @@ -66,6 +66,7 @@ Feature: Show toast messages

Scenario: I can see toast message when I have validation errors
When I click "Company C" in the "#Form_EditForm" element
And I click "Main" in the ".ui-tabs-nav" element
And I fill in "Name" with ""
And I press the "Save" button
Then I should see "Validation Error"
Expand Down

0 comments on commit 90f494e

Please sign in to comment.