Step Description | Expected result |
---|---|
Install A fresh 8.0.4 with php 8.1 | You should have the selection of where in your shop you want to go ( BO or FO ) |
Go to the BO | You should have your dashboard showed |
Go to the Module Manager " page" | Module Manager page is displayed correctly |
* Search for the “update assistant” module. * Install it |
* Update assistant should have “The Update Assistant module helps you backup, update and restore your PrestaShop store. With just a few clicks, you can move to the latest version of PrestaShop with confidence.” as description * Module is correctly installed |
Go to the General Parameters > Maintenance" page. Put the shop in maintenance mode" | Maintenance page is displayed correctly. Maintenance mode is activated |
Set your “Maintenance IP” by clicking the button “+ Add my IP” and clic on “Save” button | Your IP should be setted on the field and you will have the green notification |
* Go to the update assistant page | * You should see the configuration page of the module with a little problem on UI |
* Open a terminal in your folder [yourshop]/modules/autoupgrade * launch the command : {code:java} cd _dev{code} * Launch the command : {code:java} npm install{code} * Launch the command : {code:java} npm run vite:build{code} * Launch the command : {code:java} cd ..{code} * Launch the command : {code:java} composer install{code} |
* A terminal is open in the right folder * You should be in the folder [yourshop]/modules/autoupgrade/_dev * Npm should be installed in your folder with this last word : “Run npm audit for details."* The terminal should say some files have been modified * You should return on the folder [yourshop]/modules/autoupgrade/ * You terminal will say “Nothing to install, update or remove” |
* Return on the “Updrate Assistant” page | * 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 |
Clic on the radio button next to “Update your store” | * 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 “Version choice” * You should have a stepper on top of the page set on “1 : Version choice” * In the page, it should be : * ** a paragraph with “A more recent version is available / Current PrestaShop version: 8.0.4/ Current PHP version: 8.1 * ** Two radio button with : “Prestashop [last major/minor version]” and “Local Archive” *** Prestashop 8.2.1[Minor version] With description “The maximum version of PrestaShop to which you can update your store, based on its PHP version. " and a button “Release note” *** if you don’t have a local archive set, you didn’t have a radio button and you should have a blue notification with " 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/" ** ** A button named “Next” disabled |
* Clic on the Radio button next to “Prestashop [last version]" * The check is finished |
* the checking requirement should be launched * You should have a green notification with “The requirements check is complete, you can update your store to this version of PrestaShop.” or maybe some warning and the button “Next” should be enabled |
* Clic on the “Next” Button | * You should be on the “Update option” page with : ** The stepper set on 2 : Update options ** 3 checkbox named " Deactivate non-native modules “, “Regenerate email templates” , " Disable all overrides " with details about them under there name ** “Next” Button enabled |
Clic on the “Next” Button | * You should be on the “Back up your store” page with : ** The stepper should be on 3 : Backup ** sub title “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." ** Checkboxe : “Include images in your backup” ** 2 buttons : “Update without backup” and “launch backup” |
Click on “Launch Backup” | You should have a modal with * title : " Start backup? “ * Sub title : “Your files, database, and images will be backed up." * 2 button : “Cancel” and " Start Backup |
* Click on “Start Backup” | * You should be on the page “Backup” with : ** The current process writted ** a load bar ** The details of the current process on a second tab |
Wait until the end of the backup | You should have be on a new page with * title : " Back up your store” * A green notification : “Backup completed” * A link : “Download backup logs” * 1 button : “Start Update”” |
* 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 |
* Reproduce step 10 to 18 twice | * At the end of this process, you should be on the welcome page |
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 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 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 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 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 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 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] Rollback launched * [SUE] Rollback succeeded With the same Anonymous ID and php write like “X.X.XX” |