Then the "Trigger" panel should be expanded

A panel is expanded (its button's aria-expanded, its content shown and still) or collapsed (its content gone).

Examples

Then the "Trigger" panel should be expanded
And the "Trigger" panel should be collapsed
Then the "What is your refund policy?" panel should be expanded
And the "What is your refund policy?" panel should be collapsed
Then the "Do you offer technical support?" panel should be collapsed

Pattern

Then(/^the "([^"]*)" panel should be (expanded|collapsed)$/, …)

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