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. The node form keeps most of its side settings in such elements, and a field inside a closed one is not visible to a fill.
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-core-steps (github.com/webship/drupal-core-steps), a step pack for Webship-js 2.0.x.