When I press "Deactivate" in the "Deactivate account" dialog

Press a button or a link in a dialog, a side panel or a popover, then wait for the component's answer: still shown, or gone.

Examples

When I press "Deactivate" in the "Deactivate account" dialog
And I press "Cancel" in the "Deactivate account" dialog
When we press "Insights" in the "Solutions" popover
And I press "Save" in the "Settings" side panel
When I press "Got it, thanks!" in the "Payment successful" dialog

Pattern

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

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