Then the cart should hold 2 items

Assert how many items the cart holds (the sum of the quantities), as the shop itself counts them.

Examples

Then the cart should hold 2 items
Then the cart should hold 1 item
Then the cart should hold 0 items
And the cart should hold 4 items
Then the cart should hold 3 items

Pattern

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

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