Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@qbank @qbank_viewcreatorFeature: Question bank Modified by columnIn order to help keep track of the changes of the question version in the question bankAs a teacherI need to know who modified the question and when the modification made in the question bankBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher1 | 1 | teacher1@example.com || teacher2 | Teacher2 | 2 | teacher2@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || teacher2 | C1 | editingteacher |And the following "activities" exist:| activity | name | course | idnumber || quiz | Test quiz | C1 | quiz1 |And the following "question categories" exist:| contextlevel | reference | name || Activity module | quiz1 | Test questions |And the following "questions" exist:| questioncategory | qtype | name | questiontext || Test questions | truefalse | First question | Answer the first question |@javascriptScenario: Enable/disable modified by 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 "View creator"When I click on "Disable" "link" in the "View creator" "table_row"And I am on the "Test quiz" "mod_quiz > question bank" pageAnd I set the field "Filter type" to "Category"And I set the field "Category" to "Test questions"And I press "Apply filters"Then I should not see "Modified by"And I navigate to "Plugins > Question bank plugins > Manage question bank plugins" in site administrationAnd I click on "Enable" "link" in the "View creator" "table_row"And I am on the "Test quiz" "mod_quiz > question bank" pageAnd I set the field "Filter type" to "Category"And I set the field "Category" to "Test questions"And I press "Apply filters"Then I should see "Modified by"@javascriptScenario: Editing a question shows the modifier of the questionAnd I log in as "teacher1"And I am on the "Test quiz" "mod_quiz > question bank" pageAnd I set the field "Filter type" to "Category"And I set the field "Category" to "Test questions"And I press "Apply filters"And I should see "First question"And I choose "Edit question" action for "First question" in the question bankAnd I should see "Version 1"And I set the field "id_name" to "Renamed question v2"And I set the field "id_questiontext" to "edited question"And I press "id_submitbutton"And I should see "Teacher1"And I log in as "teacher2"And I am on the "Test quiz" "mod_quiz > question bank" pageAnd I set the field "Filter type" to "Category"And I set the field "Category" to "Test questions"And I press "Apply filters"And I choose "Edit question" action for "Renamed question v2" in the question bankThen I should see "Version 2"And I set the field "id_name" to "Renamed question v3"And I set the field "id_questiontext" to "edited question v3"And I press "id_submitbutton"And I should not see "Teacher1"And I should see "Teacher2"