Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@qbank @qbank_usageFeature: Use the qbank plugin manager page for question usageIn order to check the plugin behaviour with enable and disableBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "activities" exist:| activity | name | course | idnumber || quiz | Test quiz | C1 | quiz1 |And the following "question categories" exist:| contextlevel | reference | name || Course | C1 | Test questions |And the following "questions" exist:| questioncategory | qtype | name | questiontext || Test questions | truefalse | First question | Answer the first question |Scenario: Enable/disable question usage column from the base viewGiven I log in as "admin"And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administrationAnd I should see "Question usage"When I click on "Disable" "link" in the "Question usage" "table_row"And I am on the "Test quiz" "mod_quiz > question bank" pageThen I should not see "Usage"And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administrationAnd I click on "Enable" "link" in the "Question usage" "table_row"And I am on the "Test quiz" "mod_quiz > question bank" pageAnd I should see "Usage"@javascriptScenario: Question usage modal should work without any usage dataAnd I am on the "Test quiz" "mod_quiz > question bank" page logged in as "admin"And I apply question bank filter "Category" with value "Test questions"And I should see "Test questions"And I should see "0" on the usage columnWhen I click "0" on the usage columnThen I should see "Version 1"And I should see "v1 (latest)" in the "Question 1" "question"And I click on "Close" "button" in the ".modal-dialog" "css_element"And I should see "0" on the usage column@javascriptScenario: Question usage modal should work with usage dataGiven quiz "Test quiz" contains the following questions:| question | page || First question | 1 |And I am on the "Test quiz" "mod_quiz > question bank" page logged in as "admin"And I apply question bank filter "Category" with value "Test questions"And I should see "Test questions"And I should see "1" on the usage columnWhen I click "1" on the usage columnThen "Test quiz" "table_row" should exist in the "question-usage_table" "region"