Autoupgrade - Web Version - Verification during the upgrade

Details

Steps

Step Description Expected result
Install a fresh 8.0.4 with php 8.1 * The new shop is installed
* The selection to BO or FO is displayed
Go to the BO. Log in page is displayed.
Log in with email and password set during installation. * Connection successful
* Dashboard displayed
Go to Modules > Module manager. Module manager page is displayed.
Click on the CTA “Upload a module”. Modal “Upload a module” is displayed.
Select or drag and drop the .zip. * The module is installing
* The module is installed, the CTA “Configure” is displayed.
Close the modal. * Modal is closed
* Module manager page is displayed
Refresh the page. Page is refreshed.
Search for “Update”. Update Assistant is displayed.
Check for the version. * The version is the latest in prod. 

* The lastest version in prod is displayed because it is the version available on the marketplace.
Go to the Shop Parameters > General. General > Preferences page is displayed on the “General” tab.
Click on the “Maintenance” tab. “Maintenance” tab is displayed.
Click on the toggle “Enable store” Toggle is in “No” status.
Click on the CTA “Add my IP”. IP address is filled.
Click on the CTA “Save”. Shop is in maintenance mode.
Go to “Update Assistant” module (side board). * “Update Assistant” module is displayed : 

** Title : “Welcome to PrestaShop Update Assistant”
** Two radio buttons : “Update your store” and “Restore from a backup” (disabled)
** CTA “Get started” disabled
Select the radio button “Update your store”. * “Update your store” radio button is selected
* CTA “Get started” is enabled
Click on the CTA “Get started”. * A loader is displayed in the CTA “Get started” then, “Version choice” page is displayed : 

*
** Stepper on step one (“Version choice”)
** Paragraph with “A more recent version is available / Current PrestaShop version: [your current version of prestashop]/ Current PHP version: [your current version of php]
** Radio button : PrestaShop [last version enabled] [(Patch/minor or Major) version](blue color rgb(190, 234, 243)) with description “The maximum version of PrestaShop to which you can update your store, based on its PHP version.” and the link “Release note” 
** Blue alert info : " Unlock the local update feature and manually update your store to your preferred upgrade by saving the archive and XML files of the PrestaShop version in the following directory on your server: /your-admin-directory/autoupgrade/download/"
** CTA : “Next” disabled
* Clic on the Radio button next to “Prestashop [last version]"
* The check is finished
* Checking requirement is launched then is finished :

** “The requirements check is complete, you can update your store to this version of PrestaShop."
** Or warnings 
** CTA “Next” is enabled
* Click on the CTA “Next”. * “Update options” page is displayed :  

** Stepper on step 2 (“Update options”)
** 3 toggles : “Deactivate non-native modules”, “Regenerate email templates” , “Disable all overrides”  with details about them under their name 
** CTA “Next” enabled
Click on the CTA “Next”. * “Back up your store” page is displayed :  

** Stepper on step 3 (“Backup”)
** Subtitle “Backing up your store’s files, database, and images means you can restore to a previous version if something goes wrong during the update. This keeps your data safe and ensures your business stays up and running."
** Toggle : “Include images in your backup” on Yes status
** 2 CTAs : “Update without backup” and “Launch backup” (both available)
Click on the CTA “Launch backup”. Modal “Start backup?” is displayed : 
* Text : “Your files, database, and images will be backed up."
* 2 CTAs : “Cancel” and “Start backup”
* Click on the CTA “Start Backup”. * The “Backup” page is displayed :

** loading bar with the current process 
** details of the current process are listed
Wait until the end of the backup The title is modified : " Back up your store” : 
* The success alert “Backup completed” is displayed
* CTA “Download backup logs”
* CTA : “Start update”
Click on the CTA “Start update”. The modal “Start Update?” is displayed : 
* Text : “You are about to launch the update, do you want to continue?"
* 2 CTAs : “Cancel” and “{color:#0747A6}cutest rocket{color} Start Update " (both enabled)
Click on the CTA “{color:#0747a6}cutest rocket {color}Start update”. The page “Update” is displayed :
* Stepper on step 4 (“Update”)
* loading bar with the current process 
* details of the current process are listed
During the installation, go to folder [yourShop]/[AdminDirectory]/autoupgrade/tmp There are three folder:
* files
* modules
* release

And two files :
* index.php 
* key.php
Open folder “files” Some files we’ll be created during the installation
During the installation, do a right click and click on inspect all the different section of the website are displayed on a list
Clic on tab Network Different Post/Get are displayed one at a time
Click on a “Post” On the right, the Headers is displayed
Click on “Response” on the Right different information send on the POST are displayed
In the “Filter properties”, put “progressPercentage” and click on the arrow next to “Next param …” a parameters name : “progressPercentage” with a integer next to it is displayed
Clic on another POST another progressPercentage is displayed
Close the inspect mode your upgrade is displayed with a higher resolution
Wait until the upgrade of modules * “{color:#00875a}Module checked{color}” is displayed instead of
{color:#de350b}Module updated{color}”  
* When modules is updated,, they are cutted in /{color:#0747a6}x{color} different part of upgrade.
Go to folder [yourShop]/[AdminDirectory]/autoupgrade there is a config.var on the folder
Wait until the end of the upgrade The config.var is deleted
Go to folder [yourShop]/[AdminDirectory]/autoupgrade/logs There are a YYYY-MM-DD-HHMMSS-update.txt and a YYYY-MM-DD-HHMMSS-backup.txt  on this folder
Open the YYYY-MM-DD-HHMMSS-update.txt * none word betwen “[” “]” like warning or anything else are on this files 
* none “{color:#de350b}scandir{color}” are on this files