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 Mar 7, 2024
1 parent 4414b90 commit ec4a41d
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "DELETE /api/api-client/{apiClientId}"
weight: 1
weight: 2
---

# DELETE /api/api-client/{apiClientId}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "GET /api/api-client/{apiClientId}"
weight: 2
weight: 3
---

# GET /api/api-client/{apiClientId}
Expand All @@ -9,7 +9,7 @@ weight: 2
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-7789
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/01_apiClient/01_getApiClientId.ts
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/01_apiClient/03_getAPIApiClientId.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "GET /api/api-client/infos"
weight: 3
weight: 4
---

# GET /api/api-client/infos
Expand All @@ -9,7 +9,7 @@ weight: 3
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-8609
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/01_apiClient/01_getAPIApiClientInfos.ts
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/01_apiClient/05_getAPIApiClientInfos.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: "POST /api/api-client"
weight: 1
---

# POST /api/api-client
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-8629

## Steps
| Step Description | Expected result |
| ----- | ----- |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.<br>No records found in the table |
| Click on the button "Add new API access" | New API access Page is displayed correctly |
| Fill the form with following data (Client ID : "Client XYZ", Client Name: "ClientName ABC")<br>Click on "Generate client secret & Save" button | There is 1 application in the list<br>The message “The API access and Client secret has been generated sucessfully” is displayed<br>The message "Client secret: " is available<br>The button Copy put the client secret in the clipboard |
| Request with method POST the endpoint "https://[url of your shop]/admin-dev/index.php/api/api-client/\{apiClientId}" with data | The HTTP code is 201.<br><br>The response is in JSON. |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.<br>Two records found in the table.<br>Check fields like apiClientId, clientId, clientName. |
| Go to edit page | Edit API access Page is displayed correctly<br>Check fields like description, enabled, lifetime, scopes |
| Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly. |
| On the second row, click on the button “Three points” | The dropdown is displayed. |
| Click on the Delete Button in the dropdown | A modal appeared |
| Click on the Confirm Button in the modal | The message “Successful deletion” is displayed<br>One record found in the table |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.<br>1 record found in the table |
| On the first row, click on the button “Three points” | The dropdown is displayed |
| Click on the Delete Button in the dropdown | A modal appeared |
| Click on the Confirm Button in the modal | The message “Successful deletion” is displayed<br>No records found in the table |
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "PUT /api/customers/group/{customerGroupId}"
weight: 2
---

# PUT /api/customers/group/{customerGroupId}
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-8628

## Steps
| Step Description | Expected result |
| ----- | ----- |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.<br>No records found in the table |
| Click on the button "Add new API access" | New API access Page is displayed correctly |
| * Fill the form with following data<br> * Click on "Generate client secret & Save" button | * The message “The API access and Client secret has been generated sucessfully” is displayed<br> * The message "Client secret: " is displayed |
| Return to BO > Advanced Parameters > Authorization Server and get the ID of the first row | Authorization Server Page is displayed correctly.<br>1 record found in the table |
| In BO, Go to Shop Parameters > Customer Settings | Customer Settings Page is displayed correctly. |
| Click on the Groups tab | Customers - Groups page is well displayed |
| Reset all filters of Groups table | All filters are reset. All Groups are displayed |
| Click “Add new group” | The “Add new” page should be displayed correctly |
| Create a new Customer group > Save | Message “Successful creation” is displayed<br><br>There is one more group in the list. |
| Filter by groupe name with the name of the created group | 1 record found |
| Request with method PUT the endpoint "https://[url of your shop]/admin-dev/index.php/api/customers/group/\{customerGroupId}" with modified data (relative to  the data used for the creation) | The HTTP code is 200.<br><br>The return value is in JSON<br><br>The return value data are consistent relative to sent data. |
| Filter by groupe ID with the ID of the created group | 1 record found |
| Click on Edit for the filtered group | The Edit page will be displayed correctly<br><br>The return data keys are consistent relative to BackOffice data. |
| Click on the Groups tab | Customers - Groups page is well displayed |
| Filter by groupe ID with the ID of the created group | 1 record found |
| Delete the filtered group > Click Yes | Message “Successful deletion” is displayed<br><br>The filtered group is deleted |
| Reset all filters of Groups table | All filters are reset. All Groups are displayed |
| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.<br>1 record found in the table |
| On the first row, click on the button “Three points” | The dropdown is displayed |
| Click on the Delete Button in the dropdown | A modal appeared |
| Click on the Confirm Button in the modal | The message “Successful deletion” is displayed<br>No records found in the table |
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ weight: 1
* **Component** : Core
* **Status** : Automated
* **Scenario** : https://forge.prestashop.com/browse/TEST-7792
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/01_getAPIHookStatusId.ts
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/05_hook/01_getAPIHookStatusId.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ weight: 2
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-7790
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/04_hook/02_getAPIHooksId.ts
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/05_hook/02_getAPIHooksId.ts.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ weight: 1
# DELETE /api/product/{productId}
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-8614
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/03_customerGroup/01_deleteAPICustomerGroupsId.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ weight: 2
# BO - Design - Email Theme - Configuration of the whole page
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Status** : [TEST] To be automated
* **Automated on** : 1.7.8.x, 1.7.7.x, 8.0.x, 8.1.x, 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-940

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ weight: 2
# FO - Product Page - Change quantity
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-1257

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > Click on  The best is yet to come' Framed poster product | The best is yet to come' Framed poster product page diplayed<br><br>Quantity = 1 |
| Click on the down arrow quantity | Quantity don't change. Quantity = 1 |
| Click on the top arrow quantity | Quantity = 2 |
| Scroll down 1 time | Quantity = 1 |
| Scroll top 1 time | Quantity = 2 |
| Change the quantity by input and click to Add to cart | h4. __Product successfully added to your shopping cart |
| Click to Proceed to checkout | Checkout page displayed<br><br>Quantity = 12 |
| Click to delete product | Cart is empty |
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ weight: 3
# FO - Product Page - Display of the product
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-1258

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > click on Hummingbird Printed T-Shirt | Product page diplayed : <br><br>Path : Home / Clothes / Men / Hummingbird printed t-shirt<br><br>Picture with -20% and New label<br><br>Title of the product : HUMMINGBIRD PRINTED T-SHIRT<br><br>Price without discount cross out : 28.68€<br><br>Price with discount in orange : €22.94<br><br>Label "SAVE 20%"<br><br>Tax included<br><br>Description of product<br><br>Size : S<br><br>Drop down menu to choose size<br><br>Color : White<br><br>2 button to choose the color (White and black)<br><br>Drop down menu to choose quantity<br><br>ADD TO CART button<br><br>Add to wishlist button<br><br>3 button to share (Facebook, X and Printerest)<br><br>Review button<br><br>Policy (security, delivery and return)<br><br>Description and Product Details<br><br>Comments |
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ weight: 5
# FO - Product Page - Share links
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-1260

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > Click on Hummingbird Printed T-Shirt | Product page displayed |
| Click to Facebook button | New tab opens on the link : https://www.facebook.com/sharer.php?u=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html |
| Click to X (Twitter) button | New tab opens on the link : [https://twitter.com/intent/tweet?text=Hummingbird+printed+t-shirt%20http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html|https://www.facebook.com/sharer.php?u=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html] |
| Click to Printerest button | New tab opens on the link : https://www.pinterest.com/pin/create/button/?media=http%3A%2F%2Flocalhost%2Fps81x%2F1%2Fhummingbird-printed-t-shirt.jpg&url=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html |
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ weight: 2
# FO - Product Page - Change quantity
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-6970

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > Click on  The best is yet to come' Framed poster product | The best is yet to come' Framed poster product page diplayed<br><br>Quantity = 1 |
| Click on the down arrow quantity | Quantity don't change. Quantity = 1 |
| Click on the top arrow quantity | Quantity = 2 |
| Scroll down 1 time | Quantity = 1 |
| Scroll top 1 time | Quantity = 2 |
| Change the quantity by input and click to Add to cart | h4. __Product successfully added to your shopping cart |
| Click to Proceed to checkout | Checkout page displayed<br><br>Quantity = 12 |
| Click to delete product | Cart is empty |
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ weight: 3
# FO - Product Page - Display of the product
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-6971

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > click on Hummingbird Printed T-Shirt | Product page diplayed : <br><br>Path : Home / Clothes / Men / Hummingbird printed t-shirt<br><br>Picture with -20% and New label<br><br>Title of the product : HUMMINGBIRD PRINTED T-SHIRT<br><br>Price without discount cross out : 28.68€<br><br>Price with discount in orange : €22.94<br><br>Label "SAVE 20%"<br><br>Tax included<br><br>Description of product<br><br>Size : S<br><br>Drop down menu to choose size<br><br>Color : White<br><br>2 button to choose the color (White and black)<br><br>Drop down menu to choose quantity<br><br>ADD TO CART button<br><br>Add to wishlist button<br><br>3 button to share (Facebook, X and Printerest)<br><br>Review button<br><br>Policy (security, delivery and return)<br><br>Description and Product Details<br><br>Comments |
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ weight: 5
# FO - Product Page - Share links
## Details
* **Component** : Core
* **Status** : Sandbox
* **Status** : IN REVIEW
* **Scenario** : https://forge.prestashop.com/browse/TEST-6973

## Steps
| Step Description | Expected result |
| ----- | ----- |
| On FO > Click on Hummingbird Printed T-Shirt | Product page displayed |
| Click to Facebook button | New tab opens on the link : https://www.facebook.com/sharer.php?u=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html |
| Click to X (Twitter) button | New tab opens on the link : [https://twitter.com/intent/tweet?text=Hummingbird+printed+t-shirt%20http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html|https://www.facebook.com/sharer.php?u=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html] |
| Click to Printerest button | New tab opens on the link : https://www.pinterest.com/pin/create/button/?media=http%3A%2F%2Flocalhost%2Fps81x%2F1%2Fhummingbird-printed-t-shirt.jpg&url=http%3A%2F%2Flocalhost%2Fps81x%2Fen%2Fmen%2F1-hummingbird-printed-t-shirt.html |
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ weight: 4
* **Component** : Core
* **Status** : Automated
* **Scenario** : https://forge.prestashop.com/browse/TEST-8340
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetail.ts
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/FO/hummingbird/03_userAccount/02_orderHistory/01_orderDetails/01_reorderFromOrderDetails.ts

## Steps
| Step Description | Expected result |
Expand Down

0 comments on commit ec4a41d

Please sign in to comment.