When I press "Delete record (!)" in the dialog

Press a button of the open dialog by its label, for a dialog with more than two answers.

Examples

When I press "Delete record (!)" in the dialog
When I press "Cancel" in the dialog
And we press "Save and refresh" in the dialog
And I press "Keep editing" in the dialog
When press "Yes, discard my changes" in the dialog

Pattern

When(/^(I |we )*press "([^"]*)?" in the dialog$/, …)

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