Apply a voucher (a cart rule code) on the cart page: open "Promo code", type the code and press "Apply". A refused code shows a field error.
Examples
When I apply the voucher "WEBSHIP10"
When we apply the voucher "NOPE"
And I apply the voucher "WEBSHIP10"
When I apply the voucher "SUMMER"
When apply the voucher "WEBSHIP10"
Pattern
When(/^(I |we )*apply the voucher "([^"]*)"$/, …)
Part of @webship-js/prestashop-steps (github.com/webship/prestashop-steps), a step pack for Webship-js 2.0.x.