When I expand the navigation bar

Expand or collapse a navigation bar with its toggle button, on a screen narrow enough for the bar to hide its links behind it, and wait until its links are shown and have stopped moving (the side panel or the dialog the button opens, or the block it shows: shown / hidden and the end of their transitions). Links in a side panel close with the panel's close button, which covers the toggle button. Without a name, the first navigation bar on the page. At a width where the bar shows its links, expanding does nothing and collapsing fails.

Examples

When I expand the navigation bar
When I collapse the navigation bar
When I expand the "Shop" navigation bar
When I collapse the "Shop" navigation bar
When we expand the "Main" navigation bar

Pattern

When(/^(?:I |we )?(expand|collapse) the (?:"([^"]*)" )?navigation bar$/, …)

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