When I press "Save changes" in the "Modal title" dialog

Press a button or a link inside a dialog, a side panel, a notification or a popover, by its name, then wait until every component on the page has stopped moving: a button that closes the dialog has closed it (hidden, the backdrop gone), a button that opens another dialog has opened it.

Examples

When I press "Save changes" in the "Modal title" dialog
When I press "Open second modal" in the "Modal 1" dialog
When I press "Understood" in the "Static backdrop" dialog
When I press "Panel actions" in the "Offcanvas" side panel
When we press "Close" in the "Sticky note" notification

Pattern

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

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