Then the activity "Course handbook" should be marked as done

Assert the completion of an activity as the course page shows it to the account: "Done" for an activity whose conditions are met (or which the account marked as done), "To do" otherwise.

Examples

Then the activity "Course handbook" should be marked as done
Then the activity "Testing diary" should not be marked as done
And the activity "Class discussion" should be marked as done
Then the activity "Basics quiz" should not be marked as done
But the activity "Course handbook" should not be marked as done

Pattern

Then(/^the activity "([^"]*)" should( not)* be marked as done$/, …)

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