diff --git a/tests/behat/features/operate-subsites.feature b/tests/behat/features/operate-subsites.feature index dd2eaf5..0e905fd 100644 --- a/tests/behat/features/operate-subsites.feature +++ b/tests/behat/features/operate-subsites.feature @@ -7,8 +7,7 @@ Feature: Create and select a subsite Background: # There's a bug where you need CMS_ACCESS_CMSMain rather than CMS_ACCESS_LeftAndMain permissions to # use subsites as expected - # Given the "group" "EDITOR group" has permissions "CMS_ACCESS_LeftAndMain" and "FILE_EDIT_ALL" - Given the "group" "EDITOR group" has permissions "CMS_ACCESS_CMSMain" and "CMS_ACCESS_AssetAdmin" and "FILE_EDIT_ALL" + Given the "group" "EDITOR" has permissions "CMS_ACCESS_CMSMain" and "CMS_ACCESS_AssetAdmin" and "FILE_EDIT_ALL" And a "page" "My page" with "URLSegment"="my-page", "Content"="My page content" And an "image" "file1.jpg" And an "image" "file2.jpg" @@ -39,7 +38,7 @@ Feature: Create and select a subsite # Change to Editor user When I go to "/Security/login" And I press the "Log in as someone else" button - When I am logged in with "EDITOR" permissions + When I am logged in as a member of "EDITOR" group And I go to "admin/pages" # Can see main site page on main site diff --git a/tests/behat/features/preview-navigation.feature b/tests/behat/features/preview-navigation.feature index fa2c2a8..32dbd65 100644 --- a/tests/behat/features/preview-navigation.feature +++ b/tests/behat/features/preview-navigation.feature @@ -7,10 +7,11 @@ Feature: Preview navigation Given a "subsite" "MySubsite" And a "page" "My page" with "URLSegment"="my-page", "Content"="My page content aname ahref" and "SubsiteID"="1" And a "page" "Other page" with "URLSegment"="other-page", "Content"="Other page content Goto my page" and "SubsiteID"="1" + And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Subsites' section" + And I am logged in as a member of "EDITOR" group @javascript Scenario: I can navigate the subsite preview - Given I am logged in with "ADMIN" permissions When I go to "/admin/pages" And I select "MySubsite" from "SubsitesSelect" And I click on "My page" in the tree diff --git a/tests/behat/features/publish-a-page.feature b/tests/behat/features/publish-a-page.feature index ad0afc8..ca5213d 100644 --- a/tests/behat/features/publish-a-page.feature +++ b/tests/behat/features/publish-a-page.feature @@ -6,7 +6,8 @@ Feature: Publish a page Background: Given a "subsite" "Subsite B" And a "page" "My page" with "URLSegment"="my-page", "Content"="My page content" - And I am logged in with "ADMIN" permissions + And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Subsites' section" + And I am logged in as a member of "EDITOR" group Then I go to "admin/pages" @javascript