When I open the section "Date information"

Open or close a section of the form that folds (a fieldset with the class "collapse"), with its heading, as a person does.

Examples

When I open the section "Date information"
When I close the section "Date information"
And we open the section "Date information"
When we close the section "Date information"
And I open the section "Date information"

Pattern

When(/^(I |we )*(open|close) the section "([^"]*)"$/, …)

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