FO - Cart - Add a promo code

Details

Steps

Step Description Expected result
* Go to BO 
* Go to Catalog > Discounts
* Click on Add new cart rule
* You should see the dashoboard of your shop 
* You should see all the cart rules created if there is some one 
* You should be on the modal to create a cart rules
* Set up your cart rules 
* Clic on save
* Every specified field should be set 
* You should see your new cart rules added on the list of cart rules
* Go to FO 
* Clic “Hummingbird Printed T-shirt”
* Clic on “Add to cart”
* Clic on Proceed to checkout
* You should see you shop
* You’ll see the page of your product
* You’ll have a modal named “Product successfully added to your shopping cart”
* Your cart is displayed
* Clic on “Have a promo code ? “
* Write “reduc” on the new field 
* Clic on “Add” button
* A new field should be displayed
* the field should have what you writted
* The name of your cart rules  should be add after the total and there is a new line named “Discount(s)”
* Clic on “Have a promo code ? “
* Write “reduc” on the new field 
* Clic on “Add” button
* A new field should be displayed
* the field should have what you writted
* You should have a red message with “This voucher is already in your cart”
* Write “reduction” on the field for promo code 
* Clic on “Add” button
* the field should have what you writted
* You should have a red message with “This voucher does not exist.”
* Erase all what you writted in the field for promo code 
* Clic on “Add” button
* the field should have what you writted
* You should have a red message with “You must enter a voucher code.”
Delete promo code in BO