Then I should see a dialog

Assert a dialog is, or is not, open, optionally with a title (.modal[role="dialog"] .modal-title): a confirmation, a wizard, an error.

Examples

Then I should see a dialog
And I should see the "Confirmation" dialog
Then we should see the "Cancel Sales Order" dialog
And I should not see a dialog
Then we should not see the "Access Error" dialog

Pattern

Then(/^(I |we )*should( not)* see (?:an? dialog|the "([^"]*)" dialog)$/, …)

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