AutorÃa | Ultima modificación | Ver Log |
@ewallah @availability @availability_coursecompletedFeature: Section 0 availability_coursecompletedSection 0 cannot be restrictedBackground:Given the following "courses" exist:| fullname | shortname | category | enablecompletion || Course 1 | C1 | 0 | 1 |And the following "users" exist:| username || teacher1 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |@javascriptScenario: Restrict section0 on completing courseWhen I log in as "admin"And I am on "Course 1" course homepageAnd I navigate to "Course completion" in current page administrationAnd I expand all fieldsetsAnd I set the field "Teacher" to "1"And I press "Save changes"And I turn editing mode onAnd I edit the section "0"And I expand all fieldsetsAnd I click on "Add restriction..." "button"Then "Course completed" "button" should exist in the "Add restriction..." "dialogue"@javascriptScenario: Section0 cannot be restricted without criteriaWhen I log in as "admin"And I am on "Course 1" course homepageAnd I turn editing mode onAnd I edit the section "0"And I expand all fieldsetsAnd I click on "Add restriction..." "button"Then "Course completed" "button" should not exist in the "Add restriction..." "dialogue"