diff --git a/group/tests/behat/role_visibility.feature b/group/tests/behat/role_visibility.feature index f21d2acd27b..4d2bd1fc43e 100644 --- a/group/tests/behat/role_visibility.feature +++ b/group/tests/behat/role_visibility.feature @@ -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