Assert that the "Timeline" block of the Dashboard lists, or does not list, an activity with something to do (an assignment due, a quiz to take).
Examples
Then the timeline should list "Testing diary"
Then the timeline should not list "Testing diary"
And the timeline should list "Testing diary"
But the timeline should not list "Basics quiz"
Then the timeline should list "Testing diary"
Pattern
Then(/^the timeline should( not)* list "([^"]*)"$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.