From 2444e844f17e2fbbadaf71fe57e65b87e582b662 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Mon, 5 Sep 2022 14:28:36 +1200 Subject: [PATCH] ENH Replace ADMIN permissions with less permissions in Behat test --- tests/behat/features/userforms.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/behat/features/userforms.feature b/tests/behat/features/userforms.feature index b06628b..aa08008 100644 --- a/tests/behat/features/userforms.feature +++ b/tests/behat/features/userforms.feature @@ -3,13 +3,13 @@ Feature: Userforms I want to user userforms Background: - Given the "group" "EDITOR group" has permissions "CMS_ACCESS_LeftAndMain" + Given the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Files' section" and "FILE_EDIT_ALL" # Explicitly create an admin group with the default administrators code for UserDefinedFormAdmin And the "group" "ADMIN group" has permissions "Full administrative rights" And a "group" "ADMIN group" has the "Code" "administrators" Scenario: Operate userforms - Given I am logged in with "ADMIN" permissions + Given I am logged in as a member of "EDITOR" group When I go to "/admin/pages" And I press the "Add new" button And I select the "User Defined Form" radio button @@ -88,8 +88,7 @@ Feature: Userforms Then the rendered HTML should contain "

Custom body

" # Logout - Given I go to "/Security/login" - And I press the "Log in as someone else" button + Given I am not logged in # View frontend as anonymous user When I go to "/my-userform"