When I apply the coupon "suite10"

Apply a coupon in the cart or the checkout: open "Add coupons", type the code, press "Apply". The step waits for the store's answer, which is either the coupon on the cart or the reason under the field ("the field error").

Examples

When I apply the coupon "suite10"
When we apply the coupon "SUITE10"
And I apply the coupon "no-such-coupon"
When I apply the coupon "suite5"
And we apply the coupon "suite10"

Pattern

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

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