When I expand the "Trigger" panel

Expand or collapse a panel: its button is clicked when the panel is not already so, and the step waits until the panel is shown and still, or gone.

Examples

When I expand the "Trigger" panel
And I collapse the "Trigger" panel
When we expand the "What is your refund policy?" panel
And we collapse the "What is your refund policy?" panel
When I expand the "Do you offer technical support?" panel

Pattern

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

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