MDL-87218 lang: Use the fixed strings in tests, too
This commit is contained in:
@@ -187,7 +187,7 @@ Feature: Assign group override
|
||||
And I am on the "Assignment 2" Activity page logged in as teacher1
|
||||
When I navigate to "Overrides" in current page administration
|
||||
And I select "Group overrides" from the "jump" singleselect
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And the "Add group override" "button" should be disabled
|
||||
|
||||
Scenario: A teacher without accessallgroups permission should only be able to add group override for groups that he/she is a member of,
|
||||
|
||||
@@ -165,7 +165,7 @@ Feature: Assign user override
|
||||
| assign | Assignment 2 | Assignment 2 description | C1 | 1 |
|
||||
And I am on the "Assignment 2" Activity page logged in as teacher1
|
||||
When I navigate to "Overrides" in current page administration
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And the "Add user override" "button" should be disabled
|
||||
|
||||
Scenario: A teacher without accessallgroups permission should only be able to add user override for users that he/she shares groups with,
|
||||
|
||||
@@ -305,7 +305,7 @@ Feature: Lesson group override
|
||||
When I am on the "Lesson 2" "lesson activity" page logged in as teacher1
|
||||
And I navigate to "Overrides" in current page administration
|
||||
And I select "Group overrides" from the "jump" singleselect
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And I should not see "Add group override"
|
||||
|
||||
Scenario: A teacher without accessallgroups permission should only be able to add group override for their groups, when the activity's group mode is 'separate groups'
|
||||
|
||||
@@ -250,7 +250,7 @@ Feature: Lesson user override
|
||||
| lesson | Lesson 2 | Lesson 2 description | C1 | lesson2 | 1 |
|
||||
When I am on the "Lesson 2" "lesson activity" page logged in as teacher1
|
||||
And I navigate to "Overrides" in current page administration
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And I should not see "Add user override"
|
||||
|
||||
Scenario: A teacher without accessallgroups permission should only be able to add user override for their group-mates, when the activity's group mode is 'separate groups'
|
||||
|
||||
@@ -61,7 +61,7 @@ Feature: Quiz group override
|
||||
| capability | permission | role | contextlevel | reference |
|
||||
| moodle/site:accessallgroups | Prevent | editingteacher | Course | C1 |
|
||||
When I am on the "Test quiz" "mod_quiz > Group overrides" page logged in as "teacher3"
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And the "Add group override" "button" should be disabled
|
||||
|
||||
Scenario: A teacher can create an override
|
||||
|
||||
@@ -159,7 +159,7 @@ Feature: Quiz user override
|
||||
| activity | name | course | idnumber | groupmode |
|
||||
| quiz | Test quiz | C1 | quiz1 | 1 |
|
||||
When I am on the "Test quiz" "mod_quiz > User overrides" page logged in as "teacher"
|
||||
Then I should see "No groups you can access."
|
||||
Then I should see "There are no groups in this course."
|
||||
And the "Add user override" "button" should be disabled
|
||||
|
||||
Scenario: A non-editing teacher can see the overrides, but not change them
|
||||
|
||||
Reference in New Issue
Block a user