diff --git a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-percent.md b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-percent.md index d21c8d05056..272833e4465 100644 --- a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-percent.md +++ b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-percent.md @@ -6,7 +6,7 @@ weight: 3 # BO - Cart rules - Actions - Apply a discount percent(%) ## Details * **Component** : Core -* **Status** : In progress +* **Status** : To be automated * **Scenario** : https://forge.prestashop.com/browse/TEST-10319 ## Steps @@ -14,11 +14,13 @@ weight: 3 | ----- | ----- | | Go to BO > Catalog > Discounts | Cart rules page is displayed | | Click on "Add new cart rule" | Cart rule page is displayed

Information tab is displayed | -| Entering data for information >Click on save | Warning is message is displayed: "An action is required for this cart rule." | -| Click on Tab "Actions" and Click on Save | Succes Message is displayed: "Successful creation" | -| Click on  "View my store" 

Add a product to the basket with the discount code | The discount applies to the product in the basket with the percentage | -| Set 100% for a discount | Sucess Message is displayed: "Sucessful creation" | -| Click on  "View my store" 

Add a product to the basket | At basket level we will have 0 as the total to pay | -| Set a negative percentage | Error message : 
There are 2 errors.
# Reduction percentage must be between 0% and 100%
# The reduction_percent field is invalid. | -| Set a percentage with special characters | Error Message "The reduction_percent field is invalid." | -| Set a percentage with letters | Error Message "The reduction_percent field is invalid." | +| Enter data for Information > Click on Save | Warning is message is displayed: "An action is required for this cart rule." | +| Click on Tab "Actions" > Click on Save | Success Message is displayed: "Successful creation" | +| Click on  "View my store" > Add a product to the cart | The discount applies to the product in the cart with free shipping | +| Go back to cart rule edition page > Click on Tab Actions > Set Value = 100% > Save | Success Message is displayed: "Successful update" | +| Go back to FO > Refresh Shopping cart page | In Shopping Cart, we will have 0 as the total to pay

 
|Subtotal|€34.46|
|Discount(s)|-€34.46|
|Shipping |Free|
|Total (tax incl.)|€0.00|
|Test |-€34.46| | +| Go back to cart rule edition page > Click on Tab Actions > Set Value = -50% > Save | Error message : 
There are 2 errors.
# Reduction percentage must be between 0% and 100%
# The reduction_percent field is invalid. | +| Click on Tab Actions > Set Value = ù^$% > Save | Error Message "The reduction_percent field is invalid." | +| Click on Tab Actions > Set Value= ze > Save | Error Message "The reduction_percent field is invalid." | +| Click on Tab Actions > Set Value= 600 > Save | Error message : 
There are 2 errors.
# Reduction percentage must be between 0% and 100%
# The reduction_percent field is invalid. | +| Go to Cart rules page > Delete Cart rule | Success message:"Successful deletion" | diff --git a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-to-order-without-shipping.md b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-to-order-without-shipping.md index 21b32e8a277..1d330699933 100644 --- a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-to-order-without-shipping.md +++ b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-apply-a-discount-to-order-without-shipping.md @@ -23,3 +23,4 @@ weight: 6 | Click on  "View my store" 

Add a product to the basket with the discount code | The discount applies to the product in the basket with the amount | | Apply an amount reduction with a ‘apply discount to order without shipping ’ excluding tax | Succes Message is displayed: "Successful creation" | | Click on  "View my store" 

Add a product to the basket with the discount code | The discount applies to the product in the basket with the amount and taxe | +| Delete Cart rules | Sucess Message:"Successful deletion" | diff --git a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-free-shipping.md b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-free-shipping.md index 9f38cc9dd86..cf80f20b539 100644 --- a/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-free-shipping.md +++ b/src/content/scenarios/core/functional/bo/catalog/discount/cart-rules/crud-cart-rule/actions/bo-cart-rules-actions-free-shipping.md @@ -6,7 +6,7 @@ weight: 2 # BO - Cart rules - Actions - Free shipping ## Details * **Component** : Core -* **Status** : In progress +* **Status** : To be automated * **Scenario** : https://forge.prestashop.com/browse/TEST-10318 ## Steps @@ -14,8 +14,10 @@ weight: 2 | ----- | ----- | | Go to BO > Catalog > Discounts | Cart rules page is displayed | | Click on "Add new cart rule" | Cart rule page is displayed

Information tab is displayed | -| Entering data for information >Click on save | Warning is message is displayed: "An action is required for this cart rule." | -| Click on Tab "Actions" activate the button free shipping | Succes Message is displayed: "Successful creation" | -| FO> add a product to the basket | Shipping should be free | -| Click on Tab "Actions" disable the button free shipping | Succes Message is displayed: "Successful creation" | -| FO> add a product to the basket | The price of delivery must be displayed and must not be free of charge. | +| Enter data for Information > Click on Save | Warning is message is displayed: "An action is required for this cart rule." | +| Click on Tab "Actions" > Enable Free shipping > Save | Success Message is displayed: "Successful creation" | +| Click on View my store > Add a product to the cart | Shipping should be free. See in cart :
|Subtotal|€34.80|
|Shipping|Free|
|Total (tax incl.)|€34.80| | +| Click on Proceed to checkout > Continue the checkout process until Step 3 - Shipping method | See all Shipping method choices are free:

Click and collect - Pick up in-store - Free
My carrier - Delivery next day! - Free | +| Choose "My carrier" | |Subtotal|€22.94|
| Discount(s)| -€8.40|
| Shipping|Free|
| Total (tax incl.)|€22.94|
| Test| Free shipping| | +| Click on Tab "Actions" > Disable Free shipping option > Save | Error Message: An action is required for this cart rule. | +| Go to Cart rules page > Delete Cart rule | Success message:"Successful deletion" |