Press a button of the open dialog by its name and wait for the admin to settle: "Delete" to confirm, "Cancel" or "Close" to leave.
Examples
When I answer the dialog with "Delete"
When I answer the dialog with "Cancel"
When we answer the dialog with "Close"
And I answer the dialog with "Delete member"
When I answer the dialog with "Send invitation"
Pattern
When(/^(?:I |we )?answer the dialog with "([^"]*)"$/, …)
Part of @webship-js/ghost-steps (github.com/webship/ghost-steps), a step pack for Webship-js 2.0.x.