When I expand the "Menu settings" details

Open or close a collapsible details element of a form ("Menu settings", "Promotion options", "URL alias", "Revision information"), by the text of its summary or by its id. When the theme shows that section as a vertical tab instead, the tab is opened: the step does what the sentence means on either rendering.

Examples

When I expand the "Menu settings" details
And I expand the "URL alias" details
When we expand the "Promotion options" details
And I collapse the "Menu settings" details
When I expand the "edit-path-0" details

Pattern

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

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