When I press Escape in the "Deactivate account" dialog

Press Escape in a dialog, a side panel, a drop-down menu or a popover, then wait for its answer: it closes.

Examples

When I press Escape in the "Deactivate account" dialog
And I press Escape in the "Options" drop-down menu
When we press Escape in the "Solutions" popover
And I press Escape in the "Settings" side panel
When I press Escape in the "Account" drop-down menu

Pattern

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

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