Then the slider should have 3 slides

Assert how many slides a Webflow slider has. Without a name it is the first slider of the page.

Examples

Then the slider should have 3 slides
Then the "reviews-slider" slider should have 3 slides
And the "gallery" slider should have 8 slides
Then the slider should have 1 slide
And the "testi-slider" slider should have 4 slides

Pattern

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

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