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 the links have finished sliding (shown / hidden and the end of .collapsing; a bar whose button opens a side panel waits for that panel). 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 "Navbar" navigation bar
When I expand the "Offcanvas navbar" navigation bar
When we collapse the "Main" navigation bar

Pattern

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

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