Assert that a forum of the scenario's course lists, or does not list, a discussion by its subject.
Examples
Then the forum "Class discussion" should list the discussion "A question about flaky tests"
Then the forum "Class discussion" should not list the discussion "A question about flaky tests"
And the forum "Class discussion" should list the discussion "Study group"
Then the forum "Announcements" should not list the discussion "Study group"
But the forum "Class discussion" should not list the discussion "Study group"
Pattern
Then(/^the forum "([^"]*)" should( not)* list the discussion "([^"]*)"$/, …)
Part of @webship-js/moodle-steps (github.com/webship/moodle-steps), a step pack for Webship-js 2.0.x.