mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-56581 Roles: Permissions override screen not inherited styling
- Loading branch information
1 parent
863e1a6
commit e985a29
Showing
4 changed files
with
48 additions
and
0 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
23 changes: 23 additions & 0 deletions
23
admin/roles/tests/behat/override_roles_highlighting.feature
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,23 @@ | ||
@core @core_admin @core_admin_roles | ||
Feature: Highlight non-inherited permissions | ||
In order that the status of capabilities can be more easily seen | ||
As an admin | ||
I need altered permissions to be highlighted | ||
|
||
Background: | ||
Given the following "courses" exist: | ||
| fullname | shortname | | ||
| Course fullname | C_shortname | | ||
And I log in as "admin" | ||
And I am on site homepage | ||
|
||
@javascript | ||
Scenario: Override a permission | ||
Given I follow "Course fullname" | ||
When I expand "Users" node | ||
And I follow "Permissions" | ||
And I select "1" from the "roleid" singleselect | ||
And I click on "Prohibit" "radio" in the "View added and updated modules in recent activity block" "table_row" | ||
And I press "Save changes" | ||
And I select "1" from the "roleid" singleselect | ||
Then the "class" attribute of "View added and updated modules in recent activity block" "table_row" should contain "overriddenpermission" |
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