-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from moodle-an-hochschulen/issue-28
Feature: Allow non-admins to edit theme settings, solves #28
- Loading branch information
Showing
7 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@theme @theme_boost_union @theme_boost_union_managers | ||
Feature: Configuring the theme_boost_union plugin as manager | ||
In order to use the features | ||
As manager | ||
I need to be able to configure the theme Boost Union plugin | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | | ||
| manager | | ||
Given the following "system role assigns" exist: | ||
| user | role | contextlevel | | ||
| manager | manager | System | | ||
|
||
Scenario: Allow managers to configure Boost Union | ||
Given the following "permission overrides" exist: | ||
| capability | permission | role | contextlevel | reference | | ||
| theme/boost_union:configure | Allow | manager | System | | | ||
And I log in as "manager" | ||
And I follow "Site administration" | ||
Then ".secondary-navigation li[data-key='appearance']" "css_element" should exist | ||
And I navigate to "Appearance > Themes > Boost Union" in site administration | ||
And "body#page-admin-setting-themesettingboost_union" "css_element" should exist | ||
And I should see "Boost Union" in the "#region-main" "css_element" | ||
And I should see "General settings" in the "#region-main" "css_element" | ||
|
||
Scenario: Do not allow managers to configure Boost Union (countercheck) | ||
Given the following "permission overrides" exist: | ||
| capability | permission | role | contextlevel | reference | | ||
| theme/boost_union:configure | Prevent | manager | System | | | ||
And I log in as "manager" | ||
And I follow "Site administration" | ||
Then ".secondary-navigation li[data-key='appearance']" "css_element" should not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters