@@ -3,10 +3,10 @@ Feature: Show toast messages
3
3
I want to see toast message in the CMS when I create, edit, delete, publish, unpublish, archive a record
4
4
5
5
Background :
6
- Given the "Company" "Company A" with "Category" ="Other"
6
+ Given the "Company" "Company A" with "Category" ="Other"
7
7
And the "Company" "Company B" with "Category" ="Other"
8
8
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 "
10
10
And the "Employee" "Employee B" with "Company" ="1"
11
11
And the "Employee" "Employee C" with "Company" ="1"
12
12
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
38
38
And I should see a "Archived Company " Company B"" success toast
39
39
40
40
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
42
42
And I click "Employees" in the ".ui-tabs-nav" element
43
43
Then I should see "Employee A" in the "#Form_ItemEditForm_Employees" element
44
44
And I click "Employee A" in the "#Form_ItemEditForm_Employees" element
@@ -47,7 +47,7 @@ Feature: Show toast messages
47
47
Then I should not see "Employee A" in the "#Form_ItemEditForm_Employees" element
48
48
49
49
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
51
51
And I click "Employees" in the ".ui-tabs-nav" element
52
52
Then I should see "Employee A" in the "#Form_ItemEditForm_Employees" element
53
53
And I press the "View actions" button
@@ -66,6 +66,7 @@ Feature: Show toast messages
66
66
67
67
Scenario : I can see toast message when I have validation errors
68
68
When I click "Company C" in the "#Form_EditForm" element
69
+ And I click "Main" in the ".ui-tabs-nav" element
69
70
And I fill in "Name" with ""
70
71
And I press the "Save" button
71
72
Then I should see "Validation Error"
0 commit comments