MDL-56581 behat: Use proper steps to navigate to Permissions

This commit is contained in:
Rajesh Taneja
2016-12-21 12:51:17 +08:00
parent 6749b071d9
commit ccb2a6a5f8
@@ -14,10 +14,9 @@ Feature: Highlight non-inherited permissions
@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 navigate to "Users > Permissions" in current page administration
And I select "Manager (0)" 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
And I select "Manager (1)" from the "roleid" singleselect
Then the "class" attribute of "View added and updated modules in recent activity block" "table_row" should contain "overriddenpermission"