Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@enrol @enrol_selfFeature: Users can be defined as key holders in courses where self enrolment is allowedIn order to participate in coursesAs a userI need to auto enrol me in coursesBackground:Given the following "roles" exist:| shortname | name | context_course | enrol/self:holdkey || keyholder | Key holder | 1 | allow |And the following "users" exist:| username | firstname | lastname | email || manager1 | Manager | 1 | manager1@example.com || student1 | Student | 1 | student1@example.com |And the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And I log in as "admin"And I navigate to "Appearance > Courses" in site administrationAnd I set the following fields to these values:| Key holder | 1 |And I press "Save changes"And the following "course enrolments" exist:| user | course | role || manager1 | C1 | keyholder |And I log out@javascriptScenario: The key holder name is displayed on site home pageGiven I log in as "admin"When I add "Self enrolment" enrolment method in "Course 1" with:| Custom instance name | Test student enrolment || Enrolment key | moodle_rules |And I log outAnd I log in as "student1"And I am on "Course 1" course homepageAnd I should see "You should have received this enrolment key from:"And I should see "Manager 1"And I set the following fields to these values:| Enrolment key | moodle_rules |And I press "Enrol me"Then I should see "New section"And I should not see "Enrolment options"And I should not see "Enrol me in this course"