When I click the "Confirm" button in the form

Click a button of the form by its text: an action button of the header ("Confirm", "Send by Email"), a smart button ("Quotations") or a button in the body of the form. The step waits for the action the button starts.

Examples

When I click the "Confirm" button in the form
When we click the "New Quotation" button in the form
And I click the "Create Invoice" button in the form
When I click the "Won" button of the form
And we click the "Add" button of the form

Pattern

When(/^(I |we )*click the "([^"]*)" button (?:in|of) the form$/, …)

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