When I open the "Accordion" dropdown link

Click a nested link inside the open "Content Examples" mega-menu dropdown (.dropdown-menu-mega a.nav-link-dropdown) by its visible text — e.g. Quote, Accordion, Gallery, Table. Open the mega menu first with "I open the mega menu".

Examples

When I open the "Accordion" dropdown link
When I open the "Quote" dropdown link
When we open the "Gallery" dropdown link
And I open the "Table" dropdown link
When open the "Carousel" dropdown link

Pattern

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

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