When I apply the coupon "TEST10"

Apply a discount code on the cart page ("Apply Discount Code"). Follow it with a message assertion: a code that does not apply answers with an error.

Examples

When I apply the coupon "TEST10"
When I apply the coupon "NOPE"
And I apply the coupon "H20"
When we apply the coupon "SAVE5"
When apply the coupon "TEST10"

Pattern

When(/^(I |we )*apply the coupon "([^"]*)"$/, …)

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