| Línea 14... |
Línea 14... |
| 14 |
| Course 1 | C1 | 0 | 1 |
|
14 |
| Course 1 | C1 | 0 | 1 |
|
| 15 |
And the following "course enrolments" exist:
|
15 |
And the following "course enrolments" exist:
|
| 16 |
| user | course | role |
|
16 |
| user | course | role |
|
| 17 |
| teacher1 | C1 | editingteacher |
|
17 |
| teacher1 | C1 | editingteacher |
|
| 18 |
| student1 | C1 | student |
|
18 |
| student1 | C1 | student |
|
| - |
|
19 |
And the following "activities" exist:
|
| - |
|
20 |
| activity | name | course | idnumber | completion |
|
| - |
|
21 |
| quiz | Test quiz name | C1 | quiz1 | 1 |
|
| 19 |
And the following "question categories" exist:
|
22 |
And the following "question categories" exist:
|
| 20 |
| contextlevel | reference | name |
|
23 |
| contextlevel | reference | name |
|
| 21 |
| Course | C1 | Test questions |
|
24 |
| Activity module | quiz1 | Test questions |
|
| 22 |
And the following "questions" exist:
|
25 |
And the following "questions" exist:
|
| 23 |
| questioncategory | qtype | name | questiontext |
|
26 |
| questioncategory | qtype | name | questiontext |
|
| 24 |
| Test questions | truefalse | First question | Answer the first question |
|
27 |
| Test questions | truefalse | First question | Answer the first question |
|
| 25 |
And the following "activities" exist:
|
- |
|
| 26 |
| activity | name | course | idnumber | completion |
|
- |
|
| 27 |
| quiz | Test quiz name | C1 | quiz1 | 1 |
|
- |
|
| 28 |
And quiz "Test quiz name" contains the following questions:
|
28 |
And quiz "Test quiz name" contains the following questions:
|
| 29 |
| question | page |
|
29 |
| question | page |
|
| 30 |
| First question | 1 |
|
30 |
| First question | 1 |
|
| Línea 31... |
Línea 31... |
| 31 |
|
31 |
|
| 32 |
@javascript
|
32 |
@javascript
|
| 33 |
Scenario: Use manual completion
|
33 |
Scenario: A student can manually mark the quiz activity as done but a teacher cannot
|
| 34 |
Given I am on the "Test quiz name" "quiz activity" page logged in as teacher1
|
34 |
Given I am on the "Test quiz name" "quiz activity" page logged in as teacher1
|
| 35 |
And the manual completion button for "Test quiz name" should be disabled
|
35 |
And the manual completion button for "Test quiz name" should be disabled
|
| 36 |
And I log out
|
36 |
And I log out
|
| 37 |
# Student view.
|
37 |
# Student view.
|