Autoupgrade - Web Version - Rollback

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”
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”
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”
Clic on the radio button next to “Restore from a backup” * Your radio button should be checked 
* the button “Get starder” should be Enabled
Click on the button “Get started” * You should have an image that show the load on the button get started until the load of the next page 
* You should be on a new page named “Bacjup Selection”
* You should have a stepper on top of the page set on “1 : Backup Selection”
* In the page, it should be : 

*
**  a paragraph with “Select the backup you want to restore to”

*
** A droplist with a selected backup that have  : 

*** a date in MM/DD/AA
*** a time in HH/MM/SS
*** the name of the backup
** a button “Delete selection” with a trash icon at the end 
** A button named “Restore” enabled
* Click on the button “Delete selection” with trash icon You should have a modal with :
* a Trash icon with a background red 
* a title “Delete backup “
* a cross button
* a text description : You are about to delete the [backup_name] backup made on [MM/DD/AA HH/MM/SS]. 
* a button ** Cancel
* a button Delete with a red background
* Click on Cancel button or on the cross or on the space behind the modal
* Click on the drop list 
* Click on the first backup of the list
* You should have the modal that disapear 
* it should have three different backup 
* the drop list should be closed on the last backup
* Click on the button “Delete selection” with trash icon You should have a modal with :
* a Trash icon with a background red 
* a title “Delete backup “
* a cross button
* a text description : You are about to delete the [backup_name] backup made on [MM/DD/AA HH/MM/SS]. 
* a button ** Cancel
* a button Delete with a red background
* Click on Delete button
* Click on the drop list 
* Click again on the drop list
* You should have the modal that disapear 
* it should have only two different backup 
* the drop list should be closed on the last backup
* go to your folder [yourshop]/[adminDirectory]/autoupgrade/backup
* Delete the folder that have the same name that the backup selected in the droplist 
* Return on your web page
* It should have 5 files : 2 zip, 2 folder and one index.php files 
* The file should be correctly deleted
* There is no modification here
Click on Restore button You should return on the previous page (without the same backup on the drop list) with a red notification under the drop list that said : 

” ! Invalid configuration, [backupName] doesn’t exist”
* Do a right click on the drop list
* Click on inspect
* Change the value of the first option on the drop list
* You should have all the different option when you do a right click
* You should have all different specification of the page and the part of the droplist should be highlighted 
* The value should be changer
Click on CTA Restore You should return on the previous page (with the same backup on the drop list) with a red notification under the drop list that said : 

” ! Invalid configuration, Backup name is missing "
Click on Restore Button You should have a modal with :
* a title “Restore from a backup?"
* a cross button
* a text description : You are about to restore [PrestashopVersion] using the backup from [MM/DD/AA HH/MM/SS]. 
* a button “Cancel”
* a button Restore with a blue background
Click on blue button Restore * You should be on a new page named “Restore”
* You should have a stepper on top of the page set on “2 : Restore”
* The current process writted
* a load bar
* The details of the current process on a second tab
Wait until the end of the restore You should have be on a new page with 
* title : " Post-restore checklist “
* Stepper should be on “3 : Post-restore”
* A green notification : “Your restoration is complete”
* Sub title : “Next step” and Troubleshooting 
* A link : “Download restore logs”
* 2 button : “Exit” and " Open developer documentation”
* Click on “Download restore logs” 
* Click on “Open Developper Document”
* You can close the new tab showed
* The download of the restore on txt should be launched by your bowser
* A new tab should be open with the name “Post-restore checklist” 
* You’ll return on the post-restore checklist
Click on the button “Exit” * You should be redirected to “[admin_folder]/index”
* Prestashop ask you to log in
* Click on the Update assistant button on the sideboard * You should be in the new UI page with :
** the title “Welcome to PrestaShop Update Assistant”
** Two radio button with : Update your store and Restore from a backup 
** Radio button with the Restore shouldn’t be disabled if you have a backup 
** A button “Get started” disabled
Clic on the radio button next to “Restore from a backup” * Your radio button should be checked 
* the button “Get starder” should be Enabled
Click on the button “Get started” * You should have an image that show the load on the button get started until the load of the next page 
* You should be on a new page named “Bacjup Selection”
* You should have a stepper on top of the page set on “1 : Backup Selection”
* In the page, it should be : 

*
**  a paragraph with “Select the backup you want to restore to”

*
** A droplist with a selected backup that have  : 

*** a date in MM/DD/AA
*** a time in HH/MM/SS
*** the name of the backup
** a button “Delete selection” with a trash icon at the end 
** A button named “Restore” enabled
* Click on the button “Delete selection” with trash icon You should have a modal with :
* a Trash icon with a background red 
* a title “Delete backup “
* a cross button
* a text description : You are about to delete the [backupName] backup made on MM/DD/AA - HH/MM/SS. As it’s your only backup, you will be redirected to the module’s home page.
* a button ** Cancel
* a button Delete with a red background
* Click on Delete button * You should be in the new UI page with :
** the title “Welcome to PrestaShop Update Assistant”
** Two radio button with : Update your store and Restore from a backup 
** Radio button with the Restore should be disabled except if you have a backup 
** A button “Get started” disabled
* Go to “https://eu.mixpanel.com/project/2828312/view/3362352/app/events#9ad5X2HJqJ7y"
* set on filter the parameters
You should see : 
* [SUE] Upgrade Launched
* [SUE] Upgrade succeeded
* [SUE] Restore launched
* [SUE] Restore succeeded 

With the same User ID and php write like “X.X.XX”