When I search the records for "chair"

Search the records on screen: type the text in the search view and press Enter, which searches the first field the view proposes (usually the name). With in "<field>" the proposal of that field is chosen instead ("Search Customer for: ...").

Examples

When I search the records for "chair"
When we search the records for "Azure"
And I search the records for "Azure Interior" in "Customer"
When I search the records for "S00007"
And we search the records for "Mitchell" in "Salesperson"

Pattern

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

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