When I search the site for "hello world"

Search the site for a term.

Examples

When I search the site for "hello world"
When we search for "contact"
And search the site for "example"
When we search the site for "Sample title"
And I search for "widgets"

Pattern

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

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