Then the mobile menu should be open

Assert the mobile menu is open or closed, from the state Webflow's runtime keeps (aria-expanded on the button, and w--open), polled for the wait budget because the menu animates. On a desktop viewport the menu is never open.

Examples

Then the mobile menu should be open
Then the mobile menu should be closed
And the mobile navigation menu should be open
Then the mobile menu should not be open
And the mobile navigation menu should not be closed

Pattern

Then(/^the mobile( navigation)? menu should( not)* be (open|closed)$/, …)

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