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 Nov 23, 2024
1 parent d12dd3a commit 60fa008
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ weight: 1
# Pages in guest mode
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-10049
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/audit/FO/classic/01_guest.ts

## Steps
| Step Description | Expected result |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Pages in guest mode"
weight: 1
---

# Pages in guest mode
## Details
* **Component** : Core
* **Status** : [TEST] Automation in progress
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-10056

## Steps
| Step Description | Expected result |
| ----- | ----- |
| Go to the Home Page | The home page is displayed<br><br>No JS errors are triggered |
| Click on the category "Clothes" | The category page "Clothes" is displayed<br><br>No JS errors are triggered |
| Click on the subcategory "Men" | The subcategory page "Men" is displayed<br><br>No JS errors are triggered |
| Click on the first product page of the page | The product page is displayed<br><br>No JS errors are triggered |
| Click on the search box and Search "Shirt" | The search page is displayed<br><br>No JS errors are triggered |
| Click on the "Products" footer Link "Prices drop" | The "Prices drop" page is displayed<br><br>No JS errors are triggered |
| Click on the "Products" footer Link "New products" | The "New products" page is displayed<br><br>No JS errors are triggered |
| Click on the "Products" footer Link "Best sellers" | The "Best sellers" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Delivery" | The "Delivery" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Legal Notice" | The "Legal Notice" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Terms and conditions of use" | The "Terms and conditions of use" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "About us" | The "About us" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Secure payment" | The "Secure payment" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Contact us" | The "Contact us" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Sitemap" | The "Sitemap" page is displayed<br><br>No JS errors are triggered |
| Click on the "Our Company" footer Link "Stores" | The "Stores" page is displayed<br><br>No JS errors are triggered |
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "POST /module/upload-archive"
weight: 6
weight: 7
---

# POST /module/upload-archive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "POST /module/upload-source"
weight: 7
weight: 8
---

# POST /module/upload-source
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "PUT /module/{technicalName}/upgrade"
weight: 6
---

# PUT /module/{technicalName}/upgrade
## Details
* **Component** : Core
* **Status** : Automated
* **Automated on** : 9.0.x
* **Scenario** : https://forge.prestashop.com/browse/TEST-10052
* **Test** : https://github.com/PrestaShop/PrestaShop/tree/develop/tests/UI/campaigns/functional/API/02_endpoints/08_module/06_putModuleTechnicalNameUpgrade.ts

## 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 |
| Go to modules manager page | The page title should contains 'Module manager' |
| Search the module "ps_cashondelivery" | The module is displayed |
| Uninstall the module | The module is not installed<br><br>The only action is "Install" |
| Install the module "ps_cashondelivery" at the version 2.0.0 | The module is installed |
| Set the name of the module "ps_cashondelivery" in the search bar<br>Click on the search button | The module is displayed<br><br>The module version is 2.0.0 |
| Request with method POST the endpoint "https://[url of your shop]/admin-dev/index.php/api/module/upload-source" with data | The HTTP code is 201.<br><br>The response is in JSON.<br><br>The return data has multiples keys : "moduleId", "technicalName", "moduleVersion", "installedVersion", "enabled", "installed"<br><br>The return data keys are consistent relative to these data :<br><br>{color:#000000}{{color}<br>{color:#a31515} "moduleId"{color}{color:#000000}: {color}{color:#0451a5}null{color}{color:#000000},{color}<br>{color:#a31515} "technicalName"{color}{color:#000000}: {color}{color:#0451a5}"ps_cashondelivery"{color}{color:#000000},{color}<br>{color:#a31515} "moduleVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.1"{color}{color:#000000},{color}<br>{color:#a31515} "installedVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.0"{color}{color:#000000},{color}<br>{color:#a31515} "enabled"{color}{color:#000000}: {color}{color:#0451a5}true{color}{color:#000000},{color}<br>{color:#a31515} "installed"{color}{color:#000000}: {color}{color:#0451a5}true,{color}<br>} |
| Request with method PUT the endpoint "https://[url of your shop]/admin-dev/index.php/api/module/\{technicalName}/upgrade" with data<br><br>Where technicalName = ps_cashondelivery | The HTTP code is 200.<br><br>The response is in JSON.<br><br>The return data has multiples keys : "moduleId", "technicalName", "moduleVersion", "installedVersion", "enabled", "installed"<br><br>The return data keys are consistent relative to these data :<br><br>{color:#000000}{{color}<br>{color:#a31515} "moduleId"{color}{color:#000000}: {color}{color:#0451a5}null{color}{color:#000000},{color}<br>{color:#a31515} "technicalName"{color}{color:#000000}: {color}{color:#0451a5}"ps_cashondelivery"{color}{color:#000000},{color}<br>{color:#a31515} "moduleVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.1"{color}{color:#000000},{color}<br>{color:#a31515} "installedVersion"{color}{color:#000000}: {color}{color:#000000}"2.0.1"{color},<br> "enabled"{color:#000000}: {color}{color:#0451a5}true{color}{color:#000000},{color}<br>{color:#a31515} "installed"{color}{color:#000000}: {color}{color:#0451a5}true{color}<br>} |
| Reload the page<br>Set the name of the module "ps_cashondelivery" in the search bar<br>Click on the search button | The module is displayed<br>The module is installed<br>The module is enabled<br>The module version is 2.0.1 |
| 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 |

0 comments on commit 60fa008

Please sign in to comment.