Then the cart should contain 1 item

Assert the cart contains a given number of items. The cart count is polled for the wait budget, since it updates after the add-to-cart request completes.

Examples

Then the cart should contain 1 item
And the cart should contain 2 items
Then the cart should contain 0 items
Then cart should contain 3 items
And the cart should contain 1 item

Pattern

Then(/^(?:the )?cart should contain (\d+) items?$/, …)

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