When I confirm the modal

Confirm or cancel the open modal: its primary button (the action's own name, "Confirm", "Submit"), or "Cancel"; then wait for it to close and for the action's answer. A refused form keeps the modal open, with its errors.

Examples

When I confirm the modal
When I cancel the modal
And we confirm the modal
When we cancel the modal
Then I confirm the modal

Pattern

When(/^(I |we )*(confirm|cancel) the modal$/, …)

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