When I press Escape in the "Reset password" dialog

Press Escape in an open dialog, side panel or drop-down menu, and wait for its answer: closed and gone, or still open (one told not to close with Escape) and still.

Examples

When I press Escape in the "Reset password" dialog
And we press Escape in the "Mailboxes" side panel
When I press Escape in the "Dashboard" drop-down menu
When we press Escape in the "Delete employee?" dialog
And I press Escape in the "Color mode" dropdown menu

Pattern

When(/^(?:I |we )?press Escape in the "([^"]*)" (dialog|side panel|drop-?down menu)$/, …)

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