AutorÃa | Ultima modificación | Ver Log |
@mod @mod_label @core_completionFeature: View activity completion information for the labelIn order to have visibility of Label completion requirementsAs a studentI need to be able to view my Label completion progressBackground:Given the following "users" exist:| username | firstname | lastname | email || student1 | Vinnie | Student1 | student1@example.com || teacher1 | Darrell | Teacher1 | 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 || student1 | C1 | student || teacher1 | C1 | editingteacher |And the following "activity" exists:| activity | label || course | C1 || idnumber | mh1 || section | 1 || completion | 1 |@javascriptScenario: The manual completion button will be shown on the course page if the Show activity completion conditions is set to NoGiven I am on the "Course 1" course page logged in as teacher1# Teacher view.And "Test label 1" should have the "Mark as done" completion conditionAnd I log out# Student view.When I log in as "student1"And I am on "Course 1" course homepageThen the manual completion button for "Test label 1" should existAnd the manual completion button of "Test label 1" is displayed as "Mark as done"And I toggle the manual completion state of "Test label 1"And the manual completion button of "Test label 1" is displayed as "Done"@javascriptScenario: The manual completion button will be shown on the course page if the Show activity completion conditions is set to YesGiven I am on the "Course 1" course page logged in as teacher1And I navigate to "Settings" in current page administrationAnd I expand all fieldsetsAnd I set the field "Show activity completion conditions" to "Yes"And I press "Save and display"# Teacher view.And "Test label 1" should have the "Mark as done" completion conditionAnd I log out# Student view.When I log in as "student1"And I am on "Course 1" course homepageThen the manual completion button for "Test label 1" should existAnd the manual completion button of "Test label 1" is displayed as "Mark as done"And I toggle the manual completion state of "Test label 1"And the manual completion button of "Test label 1" is displayed as "Done"