When I post the discussion "A question about flaky tests" with the message "Why does a test pass here and fail in CI?" in the forum "Class discussion"

Post a new discussion topic in a forum of the scenario's course, the way a person does: "Add discussion topic", the subject, the message typed into its editor, then "Post to forum". The step waits for the forum to list it.

Examples

When I post the discussion "A question about flaky tests" with the message "Why does a test pass here and fail in CI?" in the forum "Class discussion"
When we post the discussion "Read the handbook first" with the message "It answers most questions." in the forum "Class discussion"
And I post the discussion "Study group" with the message "Who joins on Friday?" in the forum "Class discussion"
Given I post the discussion "A question about flaky tests" with the message "Why?" in the forum "Class discussion"
When we post the discussion "Welcome" with the message "Hello, everybody." in the forum "Announcements"

Pattern

When(/^(I |we )*post the discussion "([^"]*)" with the message "([^"]*)" in the forum "([^"]*)"$/, …)

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