Skip to content

Commit

Permalink
[Update] JIRA XRay Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 authored and github-actions[bot] committed Feb 25, 2025
1 parent 7943c51 commit 332231c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ 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
| Step Description | Expected result |
| ----- | ----- |
| Go to BO > Catalog > Discounts | Cart rules page is displayed |
| Click on "Add new cart rule" | Cart rule page is displayed<br><br>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" <br><br>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" <br><br>Add a product to the basket | At basket level we will have 0 as the total to pay |
| Set a negative percentage | Error message : <br>There are 2 errors.<br> # Reduction percentage must be between 0% and 100%<br> # 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<br><br> <br>|Subtotal|€34.46|<br>|Discount(s)|-€34.46|<br>|Shipping |Free|<br>|Total (tax incl.)|€0.00|<br>|Test |-€34.46| |
| Go back to cart rule edition page > Click on Tab Actions > Set Value = -50% > Save | Error message : <br>There are 2 errors.<br> # Reduction percentage must be between 0% and 100%<br> # 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 : <br>There are 2 errors.<br> # Reduction percentage must be between 0% and 100%<br> # The reduction_percent field is invalid. |
| Go to Cart rules page > Delete Cart rule | Success message:"Successful deletion" |
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ weight: 6
| Click on  "View my store" <br><br>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" <br><br>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" |
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ 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
| Step Description | Expected result |
| ----- | ----- |
| Go to BO > Catalog > Discounts | Cart rules page is displayed |
| Click on "Add new cart rule" | Cart rule page is displayed<br><br>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 :<br>|Subtotal|€34.80|<br>|Shipping|Free|<br>|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:<br><br>Click and collect - Pick up in-store - Free<br>My carrier - Delivery next day! - Free |
| Choose "My carrier" | |Subtotal|€22.94|<br>| Discount(s)| -€8.40|<br>| Shipping|Free|<br>| Total (tax incl.)|€22.94|<br>| 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" |

0 comments on commit 332231c

Please sign in to comment.