Línea 1... |
Línea 1... |
1 |
@qbank @qbank_history
|
1 |
@qbank @qbank_history @javascript
|
2 |
Feature: Use the qbank plugin manager page for version column
|
2 |
Feature: Use the qbank plugin manager page for version column
|
3 |
In order to check the plugin behaviour with enable and disable
|
3 |
In order to check the plugin behaviour with enable and disable
|
Línea 4... |
Línea 4... |
4 |
|
4 |
|
5 |
Background:
|
5 |
Background:
|
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 |
|
17 |
| Test questions | truefalse | First question | Answer the first question |
|
17 |
| Test questions | truefalse | First Question |
|
- |
|
18 |
And the following "core_question > updated questions" exist:
|
- |
|
19 |
| questioncategory | question | name |
|
- |
|
20 |
| Test questions | First Question | First Edit |
|
- |
|
21 |
| Test questions | First Question | Edit the Second |
|
- |
|
22 |
| Test questions | First Question | The Final Edit |
|
Línea 18... |
Línea 23... |
18 |
|
23 |
|
19 |
Scenario: Enable/disable version column from the base view
|
24 |
Scenario: Enable/disable version column from the base view
|
20 |
Given I log in as "admin"
|
25 |
Given I log in as "admin"
|
21 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
26 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
22 |
And I should see "Question history"
|
27 |
And I should see "Question history"
|
23 |
When I click on "Disable" "link" in the "Question history" "table_row"
|
28 |
When I click on "Disable" "link" in the "Question history" "table_row"
|
- |
|
29 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
24 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
30 |
And I apply question bank filter "Category" with value "Test questions"
|
25 |
Then I should not see "Version" in the "region-main" "region"
|
31 |
Then I should not see "Version" in the "region-main" "region"
|
26 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
32 |
And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
27 |
And I click on "Enable" "link" in the "Question history" "table_row"
|
33 |
And I click on "Enable" "link" in the "Question history" "table_row"
|
- |
|
34 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
28 |
And I am on the "Test quiz" "mod_quiz > question bank" page
|
35 |
And I apply question bank filter "Category" with value "Test questions"
|
- |
|
36 |
And I should see "Version" in the "region-main" "region"
|
- |
|
37 |
|
- |
|
38 |
Scenario: Sort the question versions
|
- |
|
39 |
Given I am on the "Test quiz" "mod_quiz > question bank" page logged in as "admin"
|
- |
|
40 |
And I apply question bank filter "Category" with value "Test questions"
|
- |
|
41 |
When I choose "History" action for "The Final Edit" in the question bank
|
- |
|
42 |
Then "Edit the Second" "checkbox" should appear before "The Final Edit" "checkbox"
|
- |
|
43 |
And "First Edit" "checkbox" should appear before "Edit the Second" "checkbox"
|
- |
|
44 |
And "First Question" "checkbox" should appear before "First Edit" "checkbox"
|
- |
|
45 |
And I follow "Sort by Version descending"
|
- |
|
46 |
And "The Final Edit" "checkbox" should appear before "Edit the Second" "checkbox"
|
- |
|
47 |
And "Edit the Second" "checkbox" should appear before "First Edit" "checkbox"
|
- |
|
48 |
And "First Edit" "checkbox" should appear before "First Question" "checkbox"
|
- |
|
49 |
And I follow "Sort by Version ascending"
|
- |
|
50 |
And "Edit the Second" "checkbox" should appear before "The Final Edit" "checkbox"
|
- |
|
51 |
And "First Edit" "checkbox" should appear before "Edit the Second" "checkbox"
|