MDL-45808 enrol_self: Fixed behat to observe the group key policy

This commit is contained in:
Rajesh Taneja
2014-06-12 14:20:37 +08:00
committed by Damyon Wiese
parent 801dea3298
commit 30271d87aa
@@ -64,13 +64,13 @@ Feature: Users can auto-enrol themself in courses where self enrolment is allowe
And I press "Create group"
And I set the following fields to these values:
| Group name | Group 1 |
| Enrolment key | testgroupenrolkey |
| Enrolment key | Test-groupenrolkey1 |
And I press "Save changes"
And I log out
And I log in as "student1"
And I follow "Course 1"
And I set the following fields to these values:
| Enrolment key | testgroupenrolkey |
| Enrolment key | Test-groupenrolkey1 |
And I press "Enrol me"
Then I should see "Topic 1"
And I should not see "Enrolment options"