Línea 12... |
Línea 12... |
12 |
| fullname | shortname | format |
|
12 |
| fullname | shortname | format |
|
13 |
| Course 1 | C1 | weeks |
|
13 |
| Course 1 | C1 | weeks |
|
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 "activities" exist:
|
- |
|
18 |
| activity | name | course | idnumber |
|
- |
|
19 |
| qbank | Qbank 1 | C1 | qbank1 |
|
17 |
And the following "question categories" exist:
|
20 |
And the following "question categories" exist:
|
18 |
| contextlevel | reference | name |
|
21 |
| contextlevel | reference | name |
|
19 |
| Course | C1 | Test questions |
|
22 |
| Activity module | qbank1 | Test questions |
|
Línea 20... |
Línea 23... |
20 |
|
23 |
|
21 |
@javascript
|
24 |
@javascript
|
22 |
Scenario: Viewing question bank should not load individual questions
|
25 |
Scenario: Viewing question bank should not load individual questions
|
23 |
When the following "questions" exist:
|
26 |
When the following "questions" exist:
|
24 |
| questioncategory | qtype | name | questiontext | idnumber |
|
27 |
| questioncategory | qtype | name | questiontext | idnumber |
|
25 |
| Test questions | essay | Essay test question | Write about whatever you want | qid |
|
28 |
| Test questions | essay | Essay test question | Write about whatever you want | qid |
|
26 |
| Test questions | numerical | Numerical test question | Write about whatever you want | qid |
|
29 |
| Test questions | numerical | Numerical test question | Write about whatever you want | qid |
|
27 |
And I am on the "C1" "Course" page logged in as "teacher1"
|
30 |
And I am on the "Qbank 1" "core_question > question bank" page logged in as "teacher1"
|
28 |
And I navigate to "Question bank" in current page administration
|
31 |
And I apply question bank filter "Category" with value "Test questions"
|
29 |
And I should see "Essay test question"
|
32 |
And I should see "Essay test question"
|
30 |
And I should see "Numerical test question"
|
33 |
And I should see "Numerical test question"
|
31 |
And I choose "Delete" action for "Essay test question" in the question bank
|
34 |
And I choose "Delete" action for "Essay test question" in the question bank
|
32 |
And I press "Delete"
|
35 |
And I press "Delete"
|
Línea 39... |
Línea 42... |
39 |
When the following "questions" exist:
|
42 |
When the following "questions" exist:
|
40 |
| questioncategory | qtype | name | questiontext |
|
43 |
| questioncategory | qtype | name | questiontext |
|
41 |
| Test questions | missingtype | Unknown type question | Write about whatever you want |
|
44 |
| Test questions | missingtype | Unknown type question | Write about whatever you want |
|
42 |
| Test questions | truefalse | Truefalse type question | Write about whatever you want |
|
45 |
| Test questions | truefalse | Truefalse type question | Write about whatever you want |
|
43 |
| Test questions | essay | Essay type question | Write about whatever you want |
|
46 |
| Test questions | essay | Essay type question | Write about whatever you want |
|
44 |
And I am on the "C1" "Course" page logged in as "teacher1"
|
47 |
And I am on the "Qbank 1" "core_question > question bank" page logged in as "teacher1"
|
45 |
And I navigate to "Question bank" in current page administration
|
48 |
And I apply question bank filter "Category" with value "Test questions"
|
46 |
And I should see "Unknown type question"
|
49 |
And I should see "Unknown type question"
|
47 |
And I should see "Truefalse type question"
|
50 |
And I should see "Truefalse type question"
|
48 |
And I should see "Essay type question"
|
51 |
And I should see "Essay type question"
|