When I open the "Menu settings" form section

Open or close a section of a form ("Menu settings", "Promotion options", "URL alias", "Revision information") by its title, whether the theme shows the sections as vertical tabs, as an accordion or as plain collapsible details. A field inside a closed section is not visible to a fill, so open its section first. This is the phrasing to prefer: a scenario written with it runs unchanged on Drupal 11 and Drupal 12 and under any administration theme.

Examples

When I open the "Menu settings" form section
And I open the "URL alias" section of the form
When we open the "Promotion options" form section
And I close the "Menu settings" form section
When I open the "Publishing options" section of the form

Pattern

When(/^(I |we )*(open|close|expand|collapse) the "([^"]*)" (?:form section|section of the form)$/, …)

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