Then the slider should show slide 1 of 3

Assert which slide of a Webflow slider is shown, from aria-hidden on its slides. Without a name it is the first slider of the page.

Examples

Then the slider should show slide 1 of 3
Then the slider should show slide 2 of 3
And the "reviews-slider" slider should show slide 1 of 3
Then the "gallery" slider should show slide 3 of 5
And the slider should show slide 1 of 4

Pattern

Then(/^the (?:"([^"]*)" )?slider should show slide (\d+) of (\d+)$/, …)

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