Then I should see the success message "“Hoodie” has been added to your cart."

Assert a message of the store, by its kind and its text: the notice of an added product, a refused coupon, a saved address, a store error. The text is matched as a part of the message, and the link a message carries ("View cart") is left out.

Examples

Then I should see the success message "“Hoodie” has been added to your cart."
And I should see the error message "Please select some product options"
Then we should see the info message "has been applied to your cart."
Then I should not see the error message "cannot be applied"
And I should see the success message "Address changed successfully."

Pattern

Then(/^(I |we )*should( not)* see the (success|error|warning|info) message "([^"]*)"$/, …)

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