Línea 1... |
Línea 1... |
1 |
@qbank @qbank_managecategories @javascript
|
1 |
@qbank @qbank_managecategories @view_manage_categories_plugin @javascript
|
2 |
Feature: Use the qbank plugin manager page for managecategories
|
2 |
Feature: Use the qbank plugin manager page for managecategories
|
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:
|
6 |
Given the following "courses" exist:
|
6 |
Given the following "courses" exist:
|
7 |
| fullname | shortname | category |
|
7 |
| fullname | shortname | category |
|
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 |
|
Línea 17... |
Línea 17... |
17 |
| Test questions | truefalse | First question | Answer the first question |
|
17 |
| Test questions | truefalse | First question | Answer the first question |
|
Línea 24... |
Línea 24... |
24 |
And I am on the "Test quiz" "quiz activity" page
|
24 |
And I am on the "Test quiz" "quiz activity" page
|
25 |
Then "Categories" "link" should not exist in current page administration
|
25 |
Then "Categories" "link" should not exist in current page administration
|
26 |
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
|
27 |
And I click on "Enable" "link" in the "Manage categories" "table_row"
|
27 |
And I click on "Enable" "link" in the "Manage categories" "table_row"
|
28 |
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
|
29 |
And I should see "Categories" in the "//div[contains(@class, 'urlselect')]//option[contains(text(), 'Categories')]" "xpath_element"
|
29 |
And I should see "Categories" in the "Question bank tertiary navigation" "select"
|
Línea 30... |
Línea 30... |
30 |
|
30 |
|
31 |
Scenario: Enable/disable the tab New category when trying to add a random question to a quiz
|
31 |
Scenario: Enable/disable the tab New category when trying to add a random question to a quiz
|
32 |
Given I log in as "admin"
|
32 |
Given I log in as "admin"
|
33 |
When I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|
33 |
When I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administration
|