When I search the posts for "sourdough"

Search with the advanced search: the keywords, shown as posts or as topics, and optionally by an author (a handle of the users registry or a user name) and in a forum.

Examples

When I search the posts for "sourdough"
When I search the topics for "sourdough"
And we search the posts for "flour" by "member"
When I search the topics for "drafts" in "Help and support"
When we search the posts for "weekend" by "moderator" in "General discussion"

Pattern

When(/^(?:I|we) search the (posts|topics) for "([^"]*)"(?: by "([^"]*)")?(?: in "([^"]*)")?$/, …)

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