Then I should see "1" item in the Odoo cart

Assert the cart badge shows, or does not show, the given item count. Reads .my_cart_quantity, the header cart-icon badge "website_sale" updates whenever the session cart changes, and waits for it to read that number.

Examples

Then I should see "1" item in the Odoo cart
And I should see "2" items in the cart
Then we should see "1" item in the Odoo cart
And should not see "3" items in the cart
Then I should see "0" items in the cart

Pattern

Then(/^(I |we )*should( not)* see "([^"]*)?" items? in the (?:Odoo )?cart$/, …)

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