| teacher1 | G1 |
| manager1 | G1 |
- @javascript
Scenario: Check the default roles are visible
Given I log in as "manager1"
And I am on "Course 1" course homepage
And "optgroup[label='Manager']" "css_element" should exist in the "#members" "css_element"
And I log out
- @javascript
Scenario: Do not allow managers to view any roles and check they are hidden
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Groups" node in "Course administration > Users"
When I set the field "groups" to "Group 1 (3)"
+ And I press "Show members for group"
Then "optgroup[label='No roles']" "css_element" should exist in the "#members" "css_element"
And "optgroup[label='Student']" "css_element" should exist in the "#members" "css_element"
And "optgroup[label='Teacher']" "css_element" should exist in the "#members" "css_element"
And "optgroup[label='Manager']" "css_element" should not exist in the "#members" "css_element"
- And I log out
\ No newline at end of file
+ And I log out