Open or close a Webflow dropdown by the text of its toggle (or a class on it). A dropdown set to open on hover is hovered; any other is clicked. The step does nothing when the dropdown is already in the state asked for.
Examples
When I open the "Products" dropdown
When I close the "Products" dropdown
When we open the "Resources" dropdown
And I open the "faq-card" dropdown
And we close the "Resources" dropdown
Pattern
When(/^(I |we )*(open|close) the "([^"]*)" dropdown$/, …)
Part of @webship-js/webflow-steps (github.com/webship/webflow-steps), a step pack for Webship-js 2.0.x.