When I mark the activity "Class discussion" as done

Mark an activity of the scenario's course as done, or as not done, the way a person does: its "Mark as done" button on the course page (a "Done" button undoes it). The step waits for the site to save it.

Examples

When I mark the activity "Class discussion" as done
When I mark the activity "Class discussion" as not done
And we mark the activity "Class discussion" as done
Then I mark the activity "Class discussion" as not done
Given we mark the activity "Class discussion" as done

Pattern

When(/^(I |we )*mark the activity "([^"]*)" as( not)* done$/, …)

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