Adds the product, with the chosen variant and quantity, to the cart: presses the product form's add button and waits for the store's answer (POST /cart/add or /cart/add.js), then for the theme to show it (a cart drawer, a notification, or the cart page).
Examples
When I add the product to the cart
And I add the product to the cart
When we add the product to the cart
When add the product to the cart
Then I add the product to the cart
Pattern
When(/^(?:I |we )?add the product to the cart$/, …)
Part of @webship-js/shopify-steps (github.com/webship/shopify-steps), a step pack for Webship-js 2.0.x.