When I expand the "Accordion 1" panel

Expand or collapse a panel (an accordion item) by its summary, and wait until it has opened or closed.

Examples

When I expand the "Accordion 1" panel
And we collapse the "Accordion 1" panel
When I expand the "How do I contact customer support if I have a question or issue?" panel
And we expand the "Accordion 2" panel
When I collapse the "Accordion 2" panel

Pattern

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

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