Confirm the dialog on top with its main button (the primary button of the footer: "Ok", "Delete", "Confirm"), or close it without confirming (its secondary button or its close button).
Examples
When I confirm the dialog
When we confirm the dialog
And I close the dialog
When I dismiss the dialog
And we close the dialog
Pattern
When(/^(I |we )*(confirm|close|dismiss) the dialog$/, …)
Part of @webship-js/odoo-steps (github.com/webship/odoo-steps), a step pack for Webship-js 2.0.x.