| Línea 8... |
Línea 8... |
| 8 |
| Course 1 | C1 | 0 |
|
8 |
| Course 1 | C1 | 0 |
|
| 9 |
And the following "activities" exist:
|
9 |
And the following "activities" exist:
|
| 10 |
| activity | name | course | idnumber |
|
10 |
| activity | name | course | idnumber |
|
| 11 |
| quiz | Test quiz | C1 | quiz1 |
|
11 |
| quiz | Test quiz | C1 | quiz1 |
|
| 12 |
And the following "question categories" exist:
|
12 |
And the following "question categories" exist:
|
| 13 |
| contextlevel | reference | name |
|
13 |
| contextlevel | reference | name |
|
| 14 |
| Course | C1 | Test questions |
|
14 |
| Activity module | quiz1 | Test questions |
|
| 15 |
And the following "questions" exist:
|
15 |
And the following "questions" exist:
|
| 16 |
| questioncategory | qtype | name | questiontext |
|
16 |
| questioncategory | qtype | name | questiontext |
|
| 17 |
| Test questions | truefalse | First question | Answer the <span class="totestforhtml">first</span> <question> |
|
17 |
| Test questions | truefalse | First question | Answer the <span class="totestforhtml">first</span> <question> |
|
| Línea 18... |
Línea 18... |
| 18 |
|
18 |
|
| 19 |
@javascript
|
19 |
@javascript
|
| 20 |
Scenario: Display of plain question text can be turned on and off
|
20 |
Scenario: Display of plain question text can be turned on and off
|
| - |
|
21 |
When I am on the "Test quiz" "mod_quiz > question bank" page logged in as admin
|
| 21 |
When I am on the "Test quiz" "mod_quiz > question bank" page logged in as admin
|
22 |
And I apply question bank filter "Category" with value "Test questions"
|
| 22 |
And I set the field "Show question text in the question list?" to "text only"
|
23 |
And I set the field "Show question text in the question list?" to "text only"
|
| 23 |
Then I should see "Answer the first <question>"
|
24 |
Then I should see "Answer the first <question>"
|
| 24 |
And ".totestforhtml" "css_element" should not exist in the "Answer the first <question>" "table_row"
|
25 |
And ".totestforhtml" "css_element" should not exist in the "Answer the first <question>" "table_row"
|
| 25 |
And I set the field "Show question text in the question list?" to "No"
|
26 |
And I set the field "Show question text in the question list?" to "No"
|
| Línea 26... |
Línea 27... |
| 26 |
And I should not see "Answer the first <question>"
|
27 |
And I should not see "Answer the first <question>"
|
| 27 |
|
28 |
|
| 28 |
@javascript
|
29 |
@javascript
|
| - |
|
30 |
Scenario: Display of full question text can be turned on and off
|
| 29 |
Scenario: Display of full question text can be turned on and off
|
31 |
When I am on the "Test quiz" "mod_quiz > question bank" page logged in as admin
|
| 30 |
When I am on the "Test quiz" "mod_quiz > question bank" page logged in as admin
|
32 |
And I apply question bank filter "Category" with value "Test questions"
|
| 31 |
And I set the field "Show question text in the question list?" to "with images"
|
33 |
And I set the field "Show question text in the question list?" to "with images"
|
| 32 |
Then I should see "Answer the first <question>"
|
34 |
Then I should see "Answer the first <question>"
|
| 33 |
And ".totestforhtml" "css_element" should exist in the "Answer the first <question>" "table_row"
|
35 |
And ".totestforhtml" "css_element" should exist in the "Answer the first <question>" "table_row"
|
| Línea 51... |
Línea 53... |
| 51 |
And I should not see "Show question text in the question list"
|
53 |
And I should not see "Show question text in the question list"
|
| 52 |
Then "#categoryquestions .questiontext" "css_element" should not be visible
|
54 |
Then "#categoryquestions .questiontext" "css_element" should not be visible
|
| 53 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
55 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
| 54 |
And I click on "Enable" "link" in the "View question text" "table_row"
|
56 |
And I click on "Enable" "link" in the "View question text" "table_row"
|
| 55 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
57 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
| - |
|
58 |
And I apply question bank filter "Category" with value "Test questions"
|
| 56 |
When I set the field "Show question text in the question list?" to "text only"
|
59 |
When I set the field "Show question text in the question list?" to "text only"
|
| 57 |
And I should see "Answer the first <question>"
|
60 |
And I should see "Answer the first <question>"
|