When I open the dropdown of the "Pages" menu item

Open the dropdown of a top-level main navigation item by clicking its toggle button (.nav-link-toggle), whether the item is a simple dropdown (.nav-style-simple, "Pages" on the Introduction site) or a mega menu (.nav-style-mega, "Content Examples"). On a mobile viewport the collapsed navbar is expanded first.

Examples

When I open the dropdown of the "Pages" menu item
When I open the dropdown of the "Content Examples" menu item
When we open the dropdown of the "Pages" menu item
And I open the dropdown of the "Products" menu item
When open the dropdown of the "Pages" menu item

Pattern

When(/^(I |we )*open the dropdown of the "([^"]*)?" menu item$/, …)

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