When I search the Odoo shop for "mug"

Submit the shop's search form with the given term. Fills the input[name="search"] scoped to .o_wsale_products_searchbar_form, the shop listing's own search box, as opposed to the (hidden until toggled) search field "website_sale" also renders in the page header, and presses Enter.

Examples

When I search the Odoo shop for "mug"
When we search the shop for "polo shirt"
And search the Odoo shop for "t-shirt"
When we search the shop for "backpack"
And I search the shop for "notebook"

Pattern

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

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