MDL-50666 group: Make test run without @javascript

This commit is contained in:
Jun Pataleta 2017-12-20 10:16:44 +13:00
parent 64cd459648
commit eaf01ad4aa

View File

@ -27,7 +27,6 @@ Feature: Test role visibility
| 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
@ -40,14 +39,14 @@ Feature: Test role visibility
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
And I log out