When I click outside the "Modal title" dialog

Click on the page outside a dialog, a side panel, a drop-down menu or a popover: on the backdrop when there is one, else on a part of the page that does nothing (never on a link, a button or a field). Then wait for the component's answer: it closes, it refuses (a static backdrop: hidePrevented and the dialog's short bounce) or it stays (a menu that closes only from inside, a popover that closes only from its button), and it stops moving.

Examples

When I click outside the "Modal title" dialog
When I click outside the "Static backdrop" dialog
When I click outside the "Offcanvas" side panel
When I click outside the "Clickable inside" drop-down menu
When we click outside the "Dismissible popover" popover

Pattern

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

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