mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-50666 group: Make test run without @javascript
This commit is contained in:
parent
64cd459648
commit
eaf01ad4aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user