MDL-50666 group: Make test run without @javascript
authorJun Pataleta <jun@moodle.com>
Tue, 19 Dec 2017 21:16:44 +0000 (10:16 +1300)
committerJun Pataleta <jun@moodle.com>
Tue, 19 Dec 2017 21:16:44 +0000 (10:16 +1300)
group/tests/behat/role_visibility.feature

index f21d2ac..4d2bd1f 100644 (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
\ No newline at end of file
+    And I log out