When I add the product to the Odoo cart

Add the product on screen to the cart. Clicks #add_to_cart, the "website_sale" add-to-cart control every product page renders. When the "sale_product_configurator" module is installed (a website_sale dependency as of Odoo 17), this opens an "Added to your cart" dialog instead of updating the cart directly; the step then dismisses it through its "Continue Shopping" action, which keeps the item in the cart without leaving the product page.

Examples

When I add the product to the Odoo cart
When we add this product to the cart
And add the current product to the Odoo cart
When we add the product to the cart
And I add this product to the cart

Pattern

When(/^(I |we )*add (?:the |this )?(?:current )?product to the (?:Odoo )?cart$/, …)

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