Then the upcoming events should list "Testing diary is due"

Assert that the upcoming events of the calendar of the account in the browser list, or do not list, an event by its title (whatever month it falls in).

Examples

Then the upcoming events should list "Testing diary is due"
Then the upcoming events should not list "Study group"
And the upcoming events should list "Testing diary is due"
But the upcoming events should not list "Testing diary is due"
Then the upcoming events should list "Office hours"

Pattern

Then(/^the upcoming events should( not)* list "([^"]*)"$/, …)

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