When I try to save the record

Click the save button of the form view without expecting the save to succeed, for a scenario whose subject is the refusal: a missing required field, a validation rule. Assert the outcome in the steps that follow (a notification, an invalid field, a dialog).

Examples

When I try to save the record
When we try to save the record
And try to save the record
When I try to save the form
And we try to save the form

Pattern

When(/^(I |we )*try to save the (?:record|form)$/, …)

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