Skip to content

Commit

Permalink
MDL-49232 enrol_self: Add behat test for non-guest self-enrolment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and mdjnelson committed Apr 30, 2015
1 parent 1a8400f commit 04b42e3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions enrol/self/tests/behat/self_enrolment.feature
Expand Up @@ -16,6 +16,19 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
| user | course | role |
| teacher1 | C1 | editingteacher |

@javascript
Scenario: Self-enrolment enabled as guest
Given I log in as "teacher1"
And I follow "Course 1"
And I add "Self enrolment" enrolment method with:
| Custom instance name | Test student enrolment |
And I log out
When I follow "Course 1"
And I press "Log in as a guest"
Then I should see "Guests can not access this course, please try to log in."
And I press "Continue"
And I should see "Log in"

@javascript
Scenario: Self-enrolment enabled
Given I log in as "teacher1"
Expand Down

0 comments on commit 04b42e3

Please sign in to comment.