AutorÃa | Ultima modificación | Ver Log |
@mod @mod_feedbackFeature: Managing feedback questionsIn order to manage feedback questionsAs a teacherI need to be able to create, edit and delete feedback questionsBackground:Given the following "users" exist:| username | firstname | lastname || teacher | Teacher | 1 |And the following "courses" exist:| fullname | shortname || Course 1 | C1 |And the following "course enrolments" exist:| user | course | role || teacher | C1 | editingteacher |And the following "activities" exist:| activity | name | course | idnumber || feedback | Learning experience course 1 | C1 | feedback1 |And the following "mod_feedback > question" exists:| activity | feedback1 || name | Is it me you're looking for? || label | q1 |Scenario: Teacher can create a new feedback questionGiven I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I add a "Short text answer" question to the feedback with:| Question | I can see it in your eyes || Label | q2 |Then I should see "(q2) I can see it in your eyes"@javascriptScenario: Teacher can edit feedback questionsGiven I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Edit question" in the open action menuAnd I set the field "Question" to "Can you see it in my eyes?"And I press "Save changes to question"Then I should see "(q1) Can you see it in my eyes?"And I should not see "(q1) Is it me you're looking for?"@javascriptScenario: Teacher can edit and save as new feedback questionsGiven I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Edit question" in the open action menuAnd I set the field "Question" to "You can se it in my eyes?"And I press "Save as new question"Then I should see "(q1) Is it me you're looking for?"And I should see "(q1) You can se it in my eyes?"@javascriptScenario: Teacher can delete feedback questionsGiven I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Delete question" in the open action menuAnd I click on "Yes" "button" in the "Confirmation" "dialogue"Then I should not see "(q1) Is it me you're looking for?"@javascriptScenario: Teacher can mark as required feedback questionsGiven I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Set as required" in the open action menuAnd I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Edit question" in the open action menuThen the field "Required" matches value "1"And I press "Cancel"And I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Set as not required" in the open action menuAnd I click on "Edit" "link" in the "Is it me you're looking for?" "mod_feedback > Question"And I choose "Edit question" in the open action menuAnd the field "Required" matches value "0"@javascriptScenario: Teacher can move questionsGiven the following "mod_feedback > questions" exist:| activity | label | name || feedback1 | q2 | I can see it in your eyes || feedback1 | q3 | I can see it in your smile |And I am on the "Learning experience course 1" "feedback activity" page logged in as teacherAnd I click on "Edit questions" "link" in the "region-main" "region"When I click on "Move this question" "button" in the "Is it me you're looking for?" "mod_feedback > Question"Then I should see "After \"(q2) I can see it in your eyes\"" in the "Move this question" "dialogue"And I should not see "To the top of the list" in the "Move this question" "dialogue"And I click on "After \"(q3) I can see it in your smile\"" "link" in the "Move this question" "dialogue"And I click on "Move this question" "button" in the "Is it me you're looking for?" "mod_feedback > Question"And I click on "To the top of the list" "link" in the "Move this question" "dialogue"