When I add the product to the cart

Add the product of the page to the cart, with its add-to-cart button; the step waits for the page that comes back with the store's message, and fails with the store's answer when it refuses (an option not chosen).

Examples

When I add the product to the cart
When we add the product to the cart
And I add the product to the cart
Then I add the product to the cart
And we add the product to the cart

Pattern

When(/^(I |we )*add the product to the cart$/, …)

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