Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@mod @mod_quiz @core_completionFeature: Manually complete a quizIn order to meet manual quiz completion requirementsAs a studentI need to be able to view and modify my quiz manual completion statusBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | category | enablecompletion || Course 1 | C1 | 0 | 1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher || student1 | C1 | student |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 |And the following "activities" exist:| activity | name | course | idnumber | completion || quiz | Test quiz name | C1 | quiz1 | 1 |And quiz "Test quiz name" contains the following questions:| question | page || First question | 1 |@javascriptScenario: Use manual completionGiven I am on the "Test quiz name" "quiz activity" page logged in as teacher1And the manual completion button for "Test quiz name" should be disabledAnd I log out# Student view.When I am on the "Test quiz name" "quiz activity" page logged in as student1Then the manual completion button of "Test quiz name" is displayed as "Mark as done"And I toggle the manual completion state of "Test quiz name"And the manual completion button of "Test quiz name" is displayed as "Done"