Assert the number of items the mini cart in the header counts (its badge, and the name of its button: "Number of items in the cart: 2").
Examples
Then the mini cart should show 1 item
And the mini cart should show 2 items
Then the mini cart should show 0 items
Then the mini cart should show 3 items
And the mini cart should show 1 item
Pattern
Then(/^the mini cart should show (\d+) items?$/, …)
Part of @webship-js/woocommerce-steps (github.com/webship/woocommerce-steps), a step pack for Webship-js 2.0.x.