Take a role of a participant of the scenario's course away, the way a teacher does: the pencil of the "Roles" column, the role's badge pressed to remove it, then "Save changes".
Examples
When I remove the role "Non-editing teacher" from "student" in the course
When we remove the role "Non-editing teacher" from "student" in the course
And I remove the role "Non-editing teacher" from "student" in the course
Then I remove the role "Non-editing teacher" from "student" in the course
Given we remove the role "Non-editing teacher" from "student" in the course
Pattern
When(/^(I |we )*remove the role "([^"]*)" from "([^"]*)" in the course$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.