From 60fa00830e11c1d80fd695c56bc8930c5cb49036 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Sat, 23 Nov 2024 06:32:35 +0000 Subject: [PATCH] [Update] JIRA XRay Tests --- .../audit/fo/classic/pages-in-guest-mode.md | 3 +- .../fo/hummingbird/pages-in-guest-mode.md | 31 +++++++++++++++++++ .../module/post-module-upload-archive.md | 2 +- .../module/post-module-upload-source.md | 2 +- .../put-module-technicalname-upgrade.md | 31 +++++++++++++++++++ 5 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 src/content/scenarios/core/audit/fo/hummingbird/pages-in-guest-mode.md create mode 100644 src/content/scenarios/core/functional/api/endpoints/module/put-module-technicalname-upgrade.md diff --git a/src/content/scenarios/core/audit/fo/classic/pages-in-guest-mode.md b/src/content/scenarios/core/audit/fo/classic/pages-in-guest-mode.md index 36869437afb..c2033a7a10a 100644 --- a/src/content/scenarios/core/audit/fo/classic/pages-in-guest-mode.md +++ b/src/content/scenarios/core/audit/fo/classic/pages-in-guest-mode.md @@ -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 | diff --git a/src/content/scenarios/core/audit/fo/hummingbird/pages-in-guest-mode.md b/src/content/scenarios/core/audit/fo/hummingbird/pages-in-guest-mode.md new file mode 100644 index 00000000000..50ffa9baa4f --- /dev/null +++ b/src/content/scenarios/core/audit/fo/hummingbird/pages-in-guest-mode.md @@ -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

No JS errors are triggered | +| Click on the category "Clothes" | The category page "Clothes" is displayed

No JS errors are triggered | +| Click on the subcategory "Men" | The subcategory page "Men" is displayed

No JS errors are triggered | +| Click on the first product page of the page | The product page is displayed

No JS errors are triggered | +| Click on the search box and Search "Shirt" | The search page is displayed

No JS errors are triggered | +| Click on the "Products" footer Link "Prices drop" | The "Prices drop" page is displayed

No JS errors are triggered | +| Click on the "Products" footer Link "New products" | The "New products" page is displayed

No JS errors are triggered | +| Click on the "Products" footer Link "Best sellers" | The "Best sellers" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Delivery" | The "Delivery" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Legal Notice" | The "Legal Notice" page is displayed

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

No JS errors are triggered | +| Click on the "Our Company" footer Link "About us" | The "About us" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Secure payment" | The "Secure payment" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Contact us" | The "Contact us" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Sitemap" | The "Sitemap" page is displayed

No JS errors are triggered | +| Click on the "Our Company" footer Link "Stores" | The "Stores" page is displayed

No JS errors are triggered | diff --git a/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-archive.md b/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-archive.md index c1f84e87507..8b01dbdedc5 100644 --- a/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-archive.md +++ b/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-archive.md @@ -1,6 +1,6 @@ --- title: "POST /module/upload-archive" -weight: 6 +weight: 7 --- # POST /module/upload-archive diff --git a/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-source.md b/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-source.md index 86826186bd6..2905f0d9456 100644 --- a/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-source.md +++ b/src/content/scenarios/core/functional/api/endpoints/module/post-module-upload-source.md @@ -1,6 +1,6 @@ --- title: "POST /module/upload-source" -weight: 7 +weight: 8 --- # POST /module/upload-source diff --git a/src/content/scenarios/core/functional/api/endpoints/module/put-module-technicalname-upgrade.md b/src/content/scenarios/core/functional/api/endpoints/module/put-module-technicalname-upgrade.md new file mode 100644 index 00000000000..b71d7a3b798 --- /dev/null +++ b/src/content/scenarios/core/functional/api/endpoints/module/put-module-technicalname-upgrade.md @@ -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.
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")
Click on "Generate client secret & Save" button | There is 1 application in the list
The message “The API access and Client secret has been generated sucessfully” is displayed
The message "Client secret: " is available
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

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
Click on the search button | The module is displayed

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.

The response is in JSON.

The return data has multiples keys : "moduleId", "technicalName", "moduleVersion", "installedVersion", "enabled", "installed"

The return data keys are consistent relative to these data :

{color:#000000}{{color}
{color:#a31515} "moduleId"{color}{color:#000000}: {color}{color:#0451a5}null{color}{color:#000000},{color}
{color:#a31515} "technicalName"{color}{color:#000000}: {color}{color:#0451a5}"ps_cashondelivery"{color}{color:#000000},{color}
{color:#a31515} "moduleVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.1"{color}{color:#000000},{color}
{color:#a31515} "installedVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.0"{color}{color:#000000},{color}
{color:#a31515} "enabled"{color}{color:#000000}: {color}{color:#0451a5}true{color}{color:#000000},{color}
{color:#a31515} "installed"{color}{color:#000000}: {color}{color:#0451a5}true,{color}
} | +| Request with method PUT the endpoint "https://[url of your shop]/admin-dev/index.php/api/module/\{technicalName}/upgrade" with data

Where technicalName = ps_cashondelivery | The HTTP code is 200.

The response is in JSON.

The return data has multiples keys : "moduleId", "technicalName", "moduleVersion", "installedVersion", "enabled", "installed"

The return data keys are consistent relative to these data :

{color:#000000}{{color}
{color:#a31515} "moduleId"{color}{color:#000000}: {color}{color:#0451a5}null{color}{color:#000000},{color}
{color:#a31515} "technicalName"{color}{color:#000000}: {color}{color:#0451a5}"ps_cashondelivery"{color}{color:#000000},{color}
{color:#a31515} "moduleVersion"{color}{color:#000000}: {color}{color:#0451a5}"2.0.1"{color}{color:#000000},{color}
{color:#a31515} "installedVersion"{color}{color:#000000}: {color}{color:#000000}"2.0.1"{color},
"enabled"{color:#000000}: {color}{color:#0451a5}true{color}{color:#000000},{color}
{color:#a31515} "installed"{color}{color:#000000}: {color}{color:#0451a5}true{color}
} | +| Reload the page
Set the name of the module "ps_cashondelivery" in the search bar
Click on the search button | The module is displayed
The module is installed
The module is enabled
The module version is 2.0.1 | +| In BO, Go to Advanced Parameters > Authorization Server | Authorization Server Page is displayed correctly.
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
No records found in the table |