Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_questionFeature: A teacher can move question categories in the question bankIn order to organize my questionsAs a teacherI create question categories and move them in the question bankBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | T1 | Teacher1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | name | course | idnumber || quiz | Test quiz | C1 | quiz1 |Scenario: A question category can be moved to another contextGiven I am on the "Test quiz" "mod_quiz > question bank" page logged in as "teacher1"And I select "Categories" from the "Question bank tertiary navigation" singleselectAnd I follow "Add category"And I set the following fields to these values:| Name | Test category || Parent category | Top for Test quiz |And I press "submitbutton"And I click on "Share in context for Course: Course 1" "link" in the "Test category" "list_item"Then I should see "Test category" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' questioncategories ') and contains(concat(' ', normalize-space(@class), ' '), ' contextlevel50 ')]" "xpath_element"Scenario: A question category can be moved to top levelGiven I am on the "Test quiz" "mod_quiz > question bank" page logged in as "teacher1"And I select "Categories" from the "Question bank tertiary navigation" singleselectAnd I follow "Add category"And I set the following fields to these values:| Name | Test category || Parent category | Default for Test quiz || Category info | Created as a test |And I press "submitbutton"And I click on "Move to top level" "link" in the "Test category" "list_item"Then I should see "Test category" in the "//div[contains(concat(' ', normalize-space(@class), ' '), ' questioncategories ') and contains(concat(' ', normalize-space(@class), ' '), ' contextlevel70 ')]" "xpath_element"And "//div[contains(concat(' ', normalize-space(@class), ' '), ' questioncategories ') and contains(concat(' ', normalize-space(@class), ' '), ' contextlevel70 ')]//li//ul" "xpath_element" should not exist