Then my courses should list "Software Testing 101"

Assert that the "Course overview" block (My courses, or the Dashboard of a site without My courses) lists, or does not list, a course. The step opens My courses when the page has no such block.

Examples

Then my courses should list "Software Testing 101"
Then my courses should not list "Software Testing 101"
And my courses should list "Software Testing 101"
But my courses should not list "Software Testing 101"
Then my courses should list "Software Testing 101"

Pattern

Then(/^my courses should( not)* list "([^"]*)"$/, …)

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