When I open the "Options" drop-down menu

Open a dialog, a side panel, a drop-down menu or a popover by pressing the button (or link) that opens it, then wait until it is shown and still. With no button named, the button is the one of the component's name (a menu's or a popover's button). A menu or a popover is then known by the name the scenario gives it.

Examples

When I open the "Options" drop-down menu
And I open the "Deactivate account" dialog with the "Toggle!" button
When I open the "Solutions" popover
And we open the "Account" drop-down menu with the "Options" button
When I open the "Settings" side panel with the "Open settings" button

Pattern

When(/^(?:I |we )?open the "([^"]*)" (dialog|side panel|drop-?down menu|popover)(?: with the "([^"]*)" (button|link))?$/, …)

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