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 "question categories" exist:
|
17 |
And the following "activities" exist:
|
18 |
| contextlevel | reference | name |
|
18 |
| activity | name | intro | course | idnumber |
|
19 |
| Course | C1 | Test questions |
|
19 |
| qbank | Qbank 1 | Question bank 1 | C1 | qbank1 |
|
20 |
And the following "questions" exist:
|
20 |
And the following "questions" exist:
|
21 |
| questioncategory | qtype | name | user | questiontext | idnumber |
|
21 |
| questioncategory | qtype | name | user | questiontext | idnumber |
|
22 |
| Test questions | essay | A question 1 name | admin | Question 1 text | numidnum</a |
|
22 |
| Default for Qbank 1 | essay | A question 1 name | admin | Question 1 text | numidnum</a |
|
23 |
| Test questions | essay | B question 2 name | teacher1 | Question 2 text | |
|
23 |
| Default for Qbank 1 | essay | B question 2 name | teacher1 | Question 2 text | |
|
24 |
| Test questions | numerical | C question 3 name | teacher1 | Question 3 text | numidnum</c |
|
24 |
| Default for Qbank 1 | numerical | C question 3 name | teacher1 | Question 3 text | numidnum</c |
|
25 |
And I am on the "Course 1" "core_question > course question bank" page logged in as "teacher1"
|
25 |
And I am on the "Qbank 1" "core_question > question bank" page logged in as "teacher1"
|
Línea 26... |
Línea 26... |
26 |
|
26 |
|
27 |
Scenario: The questions are sorted by type by default
|
27 |
Scenario: The questions are sorted by type by default
|
Línea 28... |
Línea 28... |
28 |
Then "A question 1 name" "checkbox" should appear before "C question 3 name" "checkbox"
|
28 |
Then "A question 1 name" "checkbox" should appear before "C question 3 name" "checkbox"
|
Línea 59... |
Línea 59... |
59 |
And I follow "Sort by First name descending"
|
59 |
And I follow "Sort by First name descending"
|
60 |
Then "B question 2 name" "checkbox" should appear before "A question 1 name" "checkbox"
|
60 |
Then "B question 2 name" "checkbox" should appear before "A question 1 name" "checkbox"
|
Línea 61... |
Línea 61... |
61 |
|
61 |
|
62 |
@javascript
|
62 |
@javascript
|
- |
|
63 |
Scenario: The question text can be shown in the list of questions
|
63 |
Scenario: The question text can be shown in the list of questions
|
64 |
Given I change window size to "large"
|
64 |
When I set the field "Show question text in the question list?" to "Yes"
|
65 |
When I set the field "Show question text in the question list?" to "Yes"
|
65 |
Then I should see "Question 1 text"
|
66 |
Then I should see "Question 1 text"
|
66 |
And I should see "Question 2 text"
|
67 |
And I should see "Question 2 text"
|