Then the shop should list 3 products

Assert the shop lists a given number of products. The count is polled for the wait budget, so a grid that is still rendering is waited for.

Examples

Then the shop should list 3 products
And the shop should list 1 product
Then the shop should list 5 products
Then shop should list 0 products
And the shop should list 10 products

Pattern

Then(/^(?:the )?shop should list (\d+) products?$/, …)

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