When I search the site for "template"

Submit the Smart Search form (com_finder) with the given search term, through whichever search box is visible: the search module of the page or the form of the search page.

Examples

When I search the site for "template"
When I search the site for "template"
When we search the site for "articles"
And I search the site for "blog"
When search the site for "modules"

Pattern

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

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