Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions config/default/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies:
- filter.format.webform_default
module:
- contact
- diff
- file
- filter
- media
Expand All @@ -20,8 +19,6 @@ is_admin: false
permissions:
- 'access content'
- 'access site-wide contact form'
- 'compare revisions'
- 'delete own files'
- 'use text format webform_default'
- 'view media'
- 'view revisions'
9 changes: 9 additions & 0 deletions config/default/user.role.civictheme_site_administrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ dependencies:
module:
- block
- block_content
- coffee
- content_moderation
- contextual
- environment_indicator
- file
- filter
- linkit
- media
- node
- paragraphs_library
- path
- pathauto
- redirect
Expand All @@ -49,8 +52,10 @@ permissions:
- 'access administration pages'
- 'access any webform configuration'
- 'access block library'
- 'access coffee'
- 'access content overview'
- 'access contextual links'
- 'access environment indicator'
- 'access files overview'
- 'access media overview'
- 'access own webform configuration'
Expand All @@ -65,11 +70,13 @@ permissions:
- 'administer account settings'
- 'administer block content'
- 'administer blocks'
- 'administer environment indicator settings'
- 'administer linkit profiles'
- 'administer media'
- 'administer media types'
- 'administer menu'
- 'administer nodes'
- 'administer paragraphs library'
- 'administer redirects'
- 'administer scheduled transitions'
- 'administer taxonomy'
Expand All @@ -95,6 +102,7 @@ permissions:
- 'create civictheme_social_links block content'
- 'create civictheme_video media'
- 'create media'
- 'create paragraph library item'
- 'create terms in civictheme_media_tags'
- 'create terms in civictheme_topics'
- 'create url aliases'
Expand Down Expand Up @@ -166,6 +174,7 @@ permissions:
- 'edit own civictheme_video media'
- 'edit own webform'
- 'edit own webform submission'
- 'edit paragraph library item'
- 'edit terms in civictheme_media_tags'
- 'edit terms in civictheme_topics'
- 'edit webform assets'
Expand Down
11 changes: 11 additions & 0 deletions tests/behat/features/coffee_access.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: Coffee module access for site administrator

As a site administrator
I want to access the coffee module functionality
So that I can quickly navigate the site

@api @javascript
Scenario: Site administrator can see coffee form wrapper after triggering
Given I am logged in as a user with the "civictheme_site_administrator" role
When I visit "/"
Then I should see an ".coffee-form-wrapper" element
2 changes: 1 addition & 1 deletion tests/behat/features/diff.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Diff module for revision comparison
So that I can track changes and understand what was modified

Scenario: Content author can access and use revision comparison
Given I am logged in as a user with the "Administrator" role
Given I am logged in as a user with the "civictheme_site_administrator" role
When I visit "node/add/civictheme_page"
And I fill in "Title" with "[TEST] Page for Diff"
And I fill in "Summary" with "Initial summary"
Expand Down
11 changes: 11 additions & 0 deletions tests/behat/features/environment_indicator_access.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: Environment indicator access for site administrator

As a site administrator
I want to see the environment indicator
So that I know which environment I'm working in

@api @javascript
Scenario: Site administrator can see environment indicator toolbar styling
Given I am logged in as a user with the "civictheme_site_administrator" role
When I visit "/"
Then the element ".toolbar-menu-administration" with the attribute "style" and the value containing "border-left-color" should exist
18 changes: 18 additions & 0 deletions tests/behat/features/paragraphs_library_access.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Feature: Paragraphs library access for site administrator

As a site administrator
I want to access and manage the paragraphs library
So that I can create and reuse paragraph components

@api
Scenario: Site administrator can access paragraphs library
Given I am logged in as a user with the "civictheme_site_administrator" role
When I visit "/admin/content/paragraphs"
Then the response status code should be 200
And I should see the text "Paragraphs library"

@api
Scenario: Site administrator can create paragraph library items
Given I am logged in as a user with the "civictheme_site_administrator" role
When I visit "/admin/content/paragraphs/add/default"
Then the response status code should be 200