Then adding the product to the cart should be refused with "Please select some product options"

Assert that the store refuses to add the product of the page to the cart, and says why (its alert, or its error message), a part of the text being enough. The step presses the add-to-cart button itself.

Examples

Then adding the product to the cart should be refused with "Please select some product options"
Then adding the product to the cart should be refused with "select some product options"
And adding the product to the cart should be refused with "Please select some product options before adding this product to your cart."
Then adding the product to the cart should be refused with "product options"
And adding the product to the cart should be refused with "Please select"

Pattern

Then(/^adding the product to the cart should be refused with "([^"]*)"$/, …)

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