Skip to content

Commit 90f494e

Browse files
Merge branch '1' into 2.1
2 parents 04e1856 + 5735b41 commit 90f494e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/behat/features/gridfield-toast-messages.feature

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Feature: Show toast messages
33
I want to see toast message in the CMS when I create, edit, delete, publish, unpublish, archive a record
44

55
Background:
6-
Given the "Company" "Company A" with "Category"="Other"
6+
Given the "Company" "Company A" with "Category"="Other"
77
And the "Company" "Company B" with "Category"="Other"
88
And the "Company" "Company C" with "Category"="Other"
9-
And the "Employee" "Employee A" with "Company"="1"
9+
And the "Employee" "Employee A" with "Company"="3"
1010
And the "Employee" "Employee B" with "Company"="1"
1111
And the "Employee" "Employee C" with "Company"="1"
1212
And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Test ModelAdmin' section" and "TEST_DATAOBJECT_EDIT"
@@ -38,7 +38,7 @@ Feature: Show toast messages
3838
And I should see a "Archived Company "Company B"" success toast
3939

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

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

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

0 commit comments

Comments
 (0)