Then the forum notification with the subject "Webship test topic" to "participant" should contain "moderator wrote:"

Assert a notification whose subject holds a text, to an account, holds a text in its body: who wrote, what, the link of the post.

Examples

Then the forum notification with the subject "Webship test topic" to "participant" should contain "moderator wrote:"
And the forum notification with the subject "Webship test topic" to "participant" should contain "Webship test reply"
Then the forum notification with the subject "[Help and support]" to "participant" should contain "Topic Link:"
Then the forum notification with the subject "Webship test topic" to "participant" should contain "Post Link:"
And the forum notification with the subject "Webship test" to "participant@example.com" should contain "You are receiving this email because you subscribed to a forum topic."

Pattern

Then(/^the forum notification with the subject "([^"]*)" to "([^"]*)" should contain "([^"]*)"$/, …)

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