Then the search result "A community garden in spring" should be a topic in "General discussion"

Assert a result of the forum search is a topic or a reply, by the topic it belongs to, and for a topic the forum the result names.

Examples

Then the search result "A community garden in spring" should be a topic in "General discussion"
And the search result "A community garden in spring" should be a reply
Then the search result "How do I change my password?" should be a topic in "Help and support"
Then the search result "Welcome to the forums" should be a reply
And the search result "A long conversation" should be a topic

Pattern

Then(/^the search result "([^"]*)" should be a (topic|reply)(?: in "([^"]*)")?$/, …)

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