You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/behat/features/admin-routing.feature
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,20 @@ Feature: Single-page routing works as expected
5
5
So that I can get to the areas I want to get to
6
6
7
7
Background:
8
-
Given I have a config file "fake-asset-admin.yml"
8
+
Given the "Company""Company A" with "Category"="Other"
9
9
And the "Employee""Employee A" with "Email"="test@example.com" and "Biography"="<p>some content here</p>" and "DateOfBirth"="1990-06-09"
10
-
And the "group""EDITOR" has permissions "Access to 'Test ModelAdmin' section" and "TEST_DATAOBJECT_EDIT"
10
+
# Page access is required to see the Company object
11
+
And the "group""EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Test ModelAdmin' section" and "CMS_ACCESS_AssetAdmin" and "TEST_DATAOBJECT_EDIT"
11
12
And I am logged in as a member of "EDITOR" group
12
13
14
+
Scenario: Non-react sections correctly route to react sections
15
+
When I go to "/admin/test"
16
+
Then I wait for 2 seconds
17
+
Then I click "Company A" in the "#Form_EditForm" element
18
+
And I click "behat link to file" in the "#Form_ItemEditForm" element
19
+
Then I should see "Files" in the ".cms-content.AssetAdmin .breadcrumb__container" element
20
+
13
21
Scenario: Admin sections can start with the same string as a react section
0 commit comments