Open a dialog, a side panel or a drop-down menu, and wait until it is shown and has stopped moving: its shown event has come and its transition is over (a dialog fades and slides for about half a second; its .show class comes long before that). Without "with the ... button", the step clicks the button or link that opens it: for a dialog or a side panel, the first visible one that targets it; for a drop-down menu, the button it is named after. A component that is already shown is left as it is.
Examples
When I open the "Modal title" dialog
When I open the "New message to @fat" dialog with the "Open modal for @fat" button
When I open the "Offcanvas" side panel with the "Button with data-bs-target" button
When I open the "Dropdown button" drop-down menu
When we open the "Publish" dropdown menu
Pattern
When(/^(?:I |we )?open the "([^"]*)" (dialog|side panel|drop-?down menu)(?: with the "([^"]*)" (button|link))?$/, …)
Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.