When I unenrol "student2" from the course

Unenrol a participant from the scenario's course, the way a teacher does: the "Unenrol" icon of the participant's row, then "Unenrol" in the dialog that asks to confirm. The step waits until the table no longer lists the account.

Examples

When I unenrol "student2" from the course
When we unenrol "student2" from the course
And I unenrol "student2" from the course
Then I unenrol "student2" from the course
Given we unenrol "student2" from the course

Pattern

When(/^(I |we )*unenrol "([^"]*)" from the course$/, …)

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