Then "student" should be enrolled in the course

Assert that an account of the users registry is, or is not, a participant of the scenario's course: the participants page lists it (by its full name or its address).

Examples

Then "student" should be enrolled in the course
Then "student2" should not be enrolled in the course
And "teacher" should be enrolled in the course
Then "student2" should be enrolled in the course
But "manager" should not be enrolled in the course

Pattern

Then(/^"([^"]*)" should( not)* be enrolled in the course$/, …)

Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.