| Step Description | Expected result |
|---|---|
| Go to BO > Catalog > Discounts > Cart rules page | The Cart rules page is well displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case1: Without Code Set these fields: # Information: ## Name ## Description # Actions: ## Discount = 20% and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the discount is well aplied Total is ok |
| Remove the product from the Shopping cart page | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Delete the cart rule and confirm the deletion | A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case2: With Code and Highlight disabled Set these fields: # Information: ## Name ## Description ## Code # Actions: ## Discount = 20% and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Remove the discount | The discount is not applied and the total is ok |
| Remove the product | The product is well removed |
| Go back to BO > Catalog > Discounts > Cart rules page | The Cart rule page is well displayed |
| Edit the last cart rule created | The Edit cart rule page is well displayed |
| Case3: With Code and Highlight enabled Enable Highlight and save |
A green alert “Successful update.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed, the promo code section is displayed, the cart rule name + code are displayed |
| Click on the “Code” | The Promo code value is not empty |
| Click on Add | The discount is well applied & the total is ok |
| Remove the discount | The discount is not applied and the total is ok |
| Remove the product | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Delete the cart rule and confirm the deletion | **A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case4: Partial Use Enabled Set these fields: # Information: ## Name ## Description # Actions: ## Discount = 100 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the discount is well applied Total is ok = 0 |
| Click on “Proceed to checkout” | The Checkout page is displayed |
| Click on “Sign in” > Set Email & Password of “John DOE”: * Address mail: [[email protected] |
mailto:[email protected]] * Password: 123456789 Click on Continue |
| Click on Continue | The Shipping method Step is displayed |
| Click on Continue | The payment step is displayed |
| Check “I agree to the terms of service and will adhere to them unconditionally.” and click on “Place Order” | The Order History is displayed |
| Click on Your account link | “Your Account” page is displayed |
| Click on “Vouchers” | “Your vouchers” page is displayed and check that: The second Cart rule is created with Value = 100 (old discount amount) - Total of last order |
| Go back to the BO > Cart rules page | The cart rules page is well displayed and the number of cart rules = Total cart rules + 1 |
| Filter by Code | Number of cart rules < Total Cart rule and the list contains the searched Voucher |
| Click on “Edit” | The Edit cart rule page is well displayed |
| Click on Conditions Tab | Check that Limit to a single customer = John DOE ([email protected]) |
| Click on Actions | Check that Amount discount = 100 - Total of the last Order |
| Go Back to BO > Cart rules page, select all discounts, delete with bulk action and confirm the deletion | A green alert “The selection has been successfully deleted.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case5: Partial use disabled Set these fields: # Information: ## Name ## Description ## Partial use disabled # Actions: ## Discount = 100 and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| **Click on “Proceed to checkout” | The Shopping cart is well displayed and the discount is well applied Total is ok = 0 |
| Click on “Proceed to checkout” | The Checkout page is displayed and the Addresses step is selected |
| Click on Continue | The Shipping method Step is displayed |
| Click on Continue | The payment step is displayed |
| Check “I agree to the terms of service and will adhere to them unconditionally.” and click on “Place Order” | The Order History is displayed |
| Click on Your account link | “Your Account” page is displayed |
| Click on “Vouchers” | “Your vouchers” page is displayed and check that there is no second cart rule created |
| Go back to the BO > Cart rules page | The cart rules page is well displayed and the number of cart rules = Total cart rules |
| Delete the cart rule and confirm the deleteion | A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case 6: Priority Set these fields: # Information: ## Name ## Description ## Priority = 2 # Actions: ## Discount = 1 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Set these fields: # Information: ## Name ## Description ## Priority = 1 # Actions: ## Discount = 2 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | Check that Cart rule n°2 (with priority 1) is applied before Cart rule n°1 (with priority 2) , Total is OK |
| Remove the product from the Shopping cart page | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Delete the cart rules with bulk action and confirm the deletion | A green alert “The selection has been successfully deleted.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case7: Status Disabled Set these fields: # Information: ## Name ## Description ## Status = disabled # Actions: ## Discount = 1 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and there is no discount displayed |
| Remove the product from the Shopping cart page | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Delete the cart rule and confirm the deletion | A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case8: Limit to single customer Set these fields: # Information: ## Name ## Description # Conditions: ## Limit to a single customer = John DOE ([email protected]) # Actions : ## Discount = 1 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the discount is well applied Total is ok |
| Click on “View my customer account” | “Your Account” page is displayed |
| “Your vouchers” page is displayed and check that: The Cart rule is displayed with Value = 1 euro |
|
| Click on “Sign out” | The page “Log in to your account” is displayed |
| Click on My store and add a product to the cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and no discount is displayed |
| Remove the product from the Shopping cart page | The product is well removed |
| Go back to the BO > Cart rules page, delete the voucher and confirm the deletion | **A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case9: Invalid time Set these fields: # Information: ## Name ## Description # Conditions: ## Set the “From” & “To” to an expired date # Actions : ## Discount = 1 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the discount is not applied |
| Go back to the BO > Cart rules page, delete the voucher and confirm the deletion | **A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case10: Total Order < Minimum amount Set these fields: # Information: ## Name ## Description ## Code # Conditions: ## Minimum amount = 50 euro Tax included + shipping excluded # Actions : ## Discount = 1 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed, the promo code section is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert “You have not reached the minimum amount required to use this voucher” is displayed |
| Increase the quantity of the product to 2 or 3 (total product > 50) | Product quantity well increased |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Remove the discount | The discount is not applied and the total is ok |
| Remove the product | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Delete the cart rule and confirm the deletion | A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case11: Check Total available for each User = 1 Set these fields: # Information: ## Name ## Description ## Code # Conditions: ## Total available =2 ## Total available for each user =1 # Actions: ## Discount = 1 euro and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Click on “Proceed to checkout” | The Checkout page is displayed |
| Click on “Sign in” > Set Email & Password of “John DOE”: * Address mail: [[email protected] |
mailto:[email protected]] * Password: 123456789 Click on Continue |
| Click on Continue | The payment step is displayed |
| Check payment method and check “I agree to the terms of service and will adhere to them unconditionally.” and click on “Place Order” | The Order Confirmation page is displayed |
| Click on “My Store” Link | The Home page is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert is displayed “You cannot use this voucher anymore (usage limit reached)” |
| Click on Sign out | The user s not logged anymore |
| Go to Home page and a product to the cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Remove the discount | The discount is not applied and the total is ok |
| Remove the product | The product is well removed |
| Go back to BO > Catalog > Discounts > Cart rules page | The Cart rule page is well displayed |
| Delete the cart rule and confirm the deletion | A green alert “Successful deletion.” is displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case12: Check Total available = 1 Set these fields: # Information: ## Name ## Description ## Code # Conditions: ## Total available = 1 ## Total available for each user = 2 # Actions: ## Discount = 1 euro and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Click on “Proceed to checkout” | The Checkout page is displayed |
| Click on “Sign in” > Set Email & Password of “John DOE”: * Address mail: [[email protected] |
mailto:[email protected]] * Password: 123456789 Click on Continue |
| Click on Continue | The payment step is displayed |
| Check payment method and check “I agree to the terms of service and will adhere to them unconditionally.” and click on “Place Order” | The Order Confirmation page is displayed |
| Click on “My Store” Link | The Home page is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert is displayed “This voucher has already been used” |
| Go back to BO > Catalog > Discounts > Cart rules page | The Cart rule page is well displayed |
| Edit the last cart rule created | The Edit cart rule page is well displayed, check that the total available = 0 |
| Delete the Cart rule | **A green alert “Successful deletion.” is displayed |
| Go to BO > International > LOcations > Countries page and searched for “United States | The page is well displayed with the exact filter |
| Enable United states country with quick access | An alert “The status has been successfully updated.” is displayed |
| Reset Filter | The filter is well reset |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Click on “Add new cart rule” page | The “Add new cart rule” page is well displayed |
| Case12: Country restriction Set these fields: # Information: ## Name ## Description ## Code # Conditions: ## Countries restriction (France unselected + United states selected # Actions: ## Discount = 100 Euro tax included and click on Save |
An alert “Successful creation.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert is displayed “You cannot use this voucher in your country of delivery” |
| Click on “Proceed to checkout” | The Checkout page is displayed, The Addresses step is displayed |
| Select My Address (United States) and click continue | The shipping method is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Remove the discount | The discount is well removed |
| Remove the product | The product is well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Edit Cart rule | The cart rule page is well displayed |
| Case13: Carrier restriction In the Conditions Tab: # Unselect Countries # Select Carrier: PrestaShop unselected carrier + My carrier selected carriers and click on Save |
An alert “Successful update.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart | The modal “Product successfully added to your shopping cart” is displayed |
| Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert “You must choose a carrier before applying this voucher to your order” is displayed |
| Click on “Proceed to checkout” | The Checkout page is displayed, The Addresses step is displayed |
| Select Mon Address (France) and click continue | The shipping method is displayed |
| Select My Carrier and click Continue | The payment method is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied & the total is ok |
| Remove the product | Product well removed |
| Go back to the BO > Cart rules page | The cart rules page is well displayed |
| Edit Cart rule | The cart rule page is well displayed |
| Case14: Group customer restriction In the Conditions Tab: # Unselect Carriers # Select Customer Group Selection: Unselected groups = Customer + Selected groups = Vistors + Guests and click on Save |
An alert “Successful update.” is displayed |
| Go to FO | The FO is well displayed |
| Add product to cart and click on Proceed to checkout | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | An alert “You cannot use this voucher” is displayed |
| Click on “Sign out” | The customer is not logged any more |
| Click My Store | Home Page is well displayed |
| Add product to cart and Click on “Proceed to checkout” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The Shopping cart is well displayed and the link “Have a promo code?” is displayed |
| Click on “Have a promo code?” | The promo code section is displayed |
| Set the Code and click on Add | The discount is well applied and the total is ok |
| Remove discount | The discount is well removed |
| Remove product | The product is well removed |
| Remove the discount | The discount is well removed |