When I open the mobile menu

Open or close the collapsed mobile menu with its hamburger button. The step is idempotent: opening a menu that is open, or closing one that is closed, does nothing. It waits until the runtime reports the new state (aria-expanded), which is after the menu animation ends.

Examples

When I open the mobile menu
When I open the mobile navigation menu
When we close the mobile menu
And I close the mobile navigation menu
When we open the mobile navigation menu

Pattern

When(/^(I |we )*(open|close) the mobile( navigation)? menu$/, …)

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