Apply a coupon code in the cart's "Use Coupon Code". Assert the shop's answer next.
Examples
When I apply the coupon "WEBSHIP10"
When we apply the coupon "NO-SUCH-CODE"
And I apply the coupon "WEBSHIP10"
When I apply the coupon "2222"
When we apply the coupon "WEBSHIP10"
Pattern
When(/^(?:I|we) apply the coupon "([^"]*)"$/, …)
Part of @webship-js/opencart-steps (github.com/webship/opencart-steps), a step pack for Webship-js 2.0.x.