| user | course | role |
| teacher1 | C1 | editingteacher |
+ # Note: Please keep the javascript tag on this Scenario to ensure that we
+ # test use of the singleselect functionality.
@javascript
Scenario: Self-enrolment enabled as guest
Given I log in as "teacher1"
And I press "Continue"
And I should see "Log in"
- @javascript
Scenario: Self-enrolment enabled
Given I log in as "teacher1"
And I follow "Course 1"
Then I should see "Topic 1"
And I should not see "Enrolment options"
- @javascript
Scenario: Self-enrolment enabled requiring an enrolment key
Given I log in as "teacher1"
And I follow "Course 1"
And I should not see "Enrolment options"
And I should not see "Enrol me in this course"
- @javascript
Scenario: Self-enrolment disabled
Given I log in as "student1"
And I am on site homepage
When I follow "Course 1"
Then I should see "You can not enrol yourself in this course"
- @javascript
Scenario: Self-enrolment enabled requiring a group enrolment key
Given I log in as "teacher1"
And I follow "Course 1"
And I press "Enrol me"
Then I should see "Topic 1"
And I should not see "Enrolment options"
- And I should not see "Enrol me in this course"
\ No newline at end of file
+ And I should not see "Enrol me in this course"