Answer the open dialog: "confirm" presses the last button of its footer (the action, for example "Delete record (!)"), "cancel" the first.
Examples
When I confirm the dialog
When I cancel the dialog
And we confirm the dialog
And I cancel the dialog
When confirm the dialog
Pattern
When(/^(I |we )*(confirm|cancel) the dialog$/, …)
Part of @webship-js/typo3-steps (github.com/webship/typo3-steps), a step pack for Webship-js 2.0.x.