Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Replace ADMIN permissions with less permissions in Behat test #241

Merged

Conversation

sabina-talipova
Copy link
Contributor

Description

Replace user with "Admin" permissions to user with "Editor" permissions.

Parent issue

tests/behat/features/manage-campaigns.feature Outdated Show resolved Hide resolved
@@ -6,7 +6,8 @@ Feature: Manage campaigns

Background:
Given a "campaign" "Test Campaign" with "Description"="this is a test"
And I am logged in with "ADMIN" permissions
And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'Campaigns' section" and "Access to 'Files' section" and "FILE_EDIT_ALL"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all of these permissions required for all of these scenarios? Seems likely that some of these can be split out to use less permissions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created additional user with only "Campaign section" permissions.
But for the last Scenario: Publishing a campaign publishes associated assets I left "EDITOR" with permission as is.

@sabina-talipova sabina-talipova force-pushed the pulls/1/review-behat-tests branch from a1fe212 to 6c583f7 Compare September 9, 2022 02:57
@sabina-talipova sabina-talipova force-pushed the pulls/1/review-behat-tests branch from 6c583f7 to 4d0f492 Compare September 9, 2022 03:02
@GuySartorelli GuySartorelli merged commit 045bcc3 into silverstripe:1 Sep 12, 2022
@GuySartorelli GuySartorelli deleted the pulls/1/review-behat-tests branch September 12, 2022 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants