Then the section "Getting started" should list the activity "Testing diary"

Assert that a section of the course page lists, or does not list, an activity (by the name the course page shows).

Examples

Then the section "Getting started" should list the activity "Testing diary"
Then the section "Practice" should not list the activity "Testing diary"
And the section "Practice" should list the activity "Basics quiz"
Then the section "General" should list the activity "Announcements"
But the section "Wrap-up" should not list the activity "Class discussion"

Pattern

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

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