Línea 12... |
Línea 12... |
12 |
| fullname | shortname | category |
|
12 |
| fullname | shortname | category |
|
13 |
| Course 1 | C1 | 0 |
|
13 |
| Course 1 | C1 | 0 |
|
14 |
And the following "course enrolments" exist:
|
14 |
And the following "course enrolments" exist:
|
15 |
| user | course | role |
|
15 |
| user | course | role |
|
16 |
| teacher1 | C1 | editingteacher |
|
16 |
| teacher1 | C1 | editingteacher |
|
17 |
And the following "question categories" exist:
|
- |
|
18 |
| contextlevel | reference | name |
|
- |
|
19 |
| Course | C1 | Test questions |
|
- |
|
20 |
And the following "activities" exist:
|
17 |
And the following "activities" exist:
|
21 |
| activity | name | course | idnumber |
|
18 |
| activity | name | course | idnumber |
|
22 |
| quiz | Quiz 1 | C1 | quiz1 |
|
19 |
| quiz | Quiz 1 | C1 | quiz1 |
|
- |
|
20 |
And the following "question categories" exist:
|
- |
|
21 |
| contextlevel | reference | name |
|
- |
|
22 |
| Activity module | quiz1 | Test questions |
|
23 |
And I log in as "teacher1"
|
23 |
And I log in as "teacher1"
|
Línea 24... |
Línea 24... |
24 |
|
24 |
|
25 |
@javascript
|
25 |
@javascript
|
26 |
Scenario: Delete selected question using select multiple items feature.
|
26 |
Scenario: Delete selected question using select multiple items feature.
|
Línea 252... |
Línea 252... |
252 |
| Test questions | truefalse | Question F | Sixth question |
|
252 |
| Test questions | truefalse | Question F | Sixth question |
|
253 |
And I am on the "Quiz 1" "mod_quiz > Edit" page
|
253 |
And I am on the "Quiz 1" "mod_quiz > Edit" page
|
Línea 254... |
Línea 254... |
254 |
|
254 |
|
255 |
When I open the "last" add to quiz menu
|
255 |
When I open the "last" add to quiz menu
|
- |
|
256 |
And I follow "a random question"
|
256 |
And I follow "a random question"
|
257 |
And I apply question bank filter "Category" with value "Test questions"
|
257 |
And I set the field "Number of random questions" to "3"
|
258 |
And I set the field "Number of random questions" to "3"
|
258 |
And I press "Add random question"
|
259 |
And I press "Add random question"
|
259 |
And I click on "Select multiple items" "button"
|
260 |
And I click on "Select multiple items" "button"
|
260 |
And I click on "selectquestion-1" "checkbox"
|
261 |
And I click on "selectquestion-1" "checkbox"
|
261 |
And I click on "selectquestion-2" "checkbox"
|
262 |
And I click on "selectquestion-2" "checkbox"
|
262 |
And I click on "Delete selected" "button"
|
263 |
And I click on "Delete selected" "button"
|
263 |
And I click on "Yes" "button" in the "Confirm" "dialogue"
|
264 |
And I click on "Yes" "button" in the "Confirm" "dialogue"
|
264 |
Then I should see "Random question based on filter condition" on quiz page "1"
|
265 |
Then I should see "Random (Test questions) based on filter condition" on quiz page "1"
|
265 |
And I should not see "Random question based on filter condition" on quiz page "2"
|
266 |
And I should not see "Random (Test questions) based on filter condition" on quiz page "2"
|
266 |
And I should not see "Random question based on filter condition" on quiz page "3"
|
267 |
And I should not see "Random (Test questions) based on filter condition" on quiz page "3"
|
267 |
And I should see "Total of marks: 1.00"
|
268 |
And I should see "Total of marks: 1.00"
|
Línea 268... |
Línea 269... |
268 |
And I should see "Questions: 1"
|
269 |
And I should see "Questions: 1"
|
269 |
|
270 |
|