Assert the forums sent a notification whose subject holds a text to an account (a handle of the users registry, or an address) since the scenario began; the step waits for it to arrive.
Examples
Then a forum notification with the subject "Webship test topic" should be sent to "participant"
And a forum notification with the subject "[Help and support]" should be sent to "participant"
Then a forum notification with the subject "Webship test question" should be sent to "moderator"
Then a forum notification with the subject "[General discussion] Webship test topic" should be sent to "participant@example.com"
And a forum notification with the subject "Webship test" should be sent to "keymaster"
Pattern
Then(/^a forum notification with the subject "([^"]*)" should be sent to "([^"]*)"$/, …)
Part of @webship-js/bbpress-steps (github.com/webship/bbpress-steps), a step pack for Webship-js 2.0.x.