Press a button (or a link) in an open dialog, side panel or notification, then wait for the component's answer: closed and gone, or still open and still.
Examples
When I press "Agree" in the "Use Google's location service?" dialog
And we press "Delete" in the "Delete employee?" dialog
When I press "Inbox" in the "Mailboxes" side panel
When I press "UNDO" in the "Note archived" notification
And I press "Continue" in the "Reset password" dialog
Pattern
When(/^(?:I |we )?press "([^"]*)" in the "([^"]*)" (dialog|side panel|notification)$/, …)
Part of @webship-js/material-ui-steps (github.com/webship/material-ui-steps), a step pack for Webship-js 2.0.x.