mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 14:10:08 +01:00
MDL-79280 mod_quiz: Behat scenario for adding multiple user overrides.
This commit is contained in:
parent
83e840b8e7
commit
efe3e377b6
@ -59,6 +59,30 @@ Feature: Quiz user override
|
||||
And I press "Continue"
|
||||
And I should not see "Student One"
|
||||
|
||||
@javascript
|
||||
Scenario: Add multiple user overrides, one after another
|
||||
Given the following "activities" exist:
|
||||
| activity | name | course | idnumber |
|
||||
| quiz | Test quiz | C1 | quiz1 |
|
||||
And I am on the "Test quiz" "mod_quiz > View" page logged in as "teacher"
|
||||
And I change window size to "large"
|
||||
And I navigate to "Overrides" in current page administration
|
||||
And I press "Add user override"
|
||||
And I set the following fields to these values:
|
||||
| Override user | Student One |
|
||||
| timeclose[enabled] | 1 |
|
||||
| Close the quiz | ## 1 January 2020 08:00 ## |
|
||||
And I press "Save and enter another override"
|
||||
And I set the following fields to these values:
|
||||
| Override user | Student Two |
|
||||
| timeclose[enabled] | 1 |
|
||||
| Close the quiz | ## 2 January 2020 08:00 ## |
|
||||
When I press "Save"
|
||||
Then the following should exist in the "generaltable" table:
|
||||
| User | Overrides | -4- |
|
||||
| Student One | Quiz closes | 1 January 2020, 8:00 |
|
||||
| Student Two | Quiz closes | 2 January 2020, 8:00 |
|
||||
|
||||
@javascript
|
||||
Scenario: Can add a user override when the quiz is not available to the student
|
||||
Given the following "activities" exist:
|
||||
|
Loading…
x
Reference in New Issue
Block a user