When I cancel the dialog

Cancel the open dialog and wait for it to close. A dialog with changes asks the browser to confirm leaving: that question is accepted.

Examples

When I cancel the dialog
When we cancel the dialog
And I cancel the dialog
When I close the dialog without saving
And we close the dialog without saving

Pattern

When(/^(I |we )*(cancel the dialog|close the dialog without saving)$/, …)

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