New products block module - Upgrade module

Details

Steps

Step Description Expected result
Go to BO > Modules > Module manager and search ps_newproducts The module page list should be displayed and New products block module should be displayed on the list
Click on the button at the right of the module > Choose on the list “Upgrade” option A modal is open with:
* Title: “Are you sure you want to upgrade this module?"
* Description: “We strongly advise you to upgrade the modules on maintenance mode to avoid any cache issues."
* 3 buttons: “Cancel” / “Go to maintenance page” / “Upgrade anyway”
Click on “Cancel” button or the cross on top right or outside * The modal is removed
* The module list page is displayed
Click on the button at the right of the module > Choose on the list “Upgrade” option The modal is open again with the same informations (Title / Description / 3 buttons)
Case 1: Upgrade with shop on maintenance
Click on “Go to maintenance page” button
The “Maintenance” page is displayed
Set to “No” the “Enable store” switch button > Click on “Save” button * A “Successful update” message is displayed
* “Enable store” is set to “No” and grey
* A “Maintenance mode” link is displayed on the header of the store
Click on “View my shop” link in the header > Click on the new tab The new tab is displayed the FO of the shop with the maintenance page
Go back to BO > Modules > Module manager and search ps_newproducts The module page list should be displayed and New products block module should be displayed on the list
Click on “Upgrade” button at the right of the module A modal is open with:
* Title: “Are you sure you want to upgrade this module?"
* 2 buttons: “Cancel” / “Upgrade”
Click on “Cancel” button  or the cross on top right * The modal is removed
* The module list page is displayed
Click on “Upgrade” button at the right of the module The modal is open again with the same informations (Title / 2 buttons)
Click on “Upgrade” button in the modal * After loading, a green message “Upgrade action on module ps_newproducts succeeded.” is displayed
* The module is upgraded, the button at the right of the module is displaying “Configure”
Reload the page The module should be:
* Upgraded and displayed “Configure” in the right button
* Displayed the latest version instead of the current to the new version
* Removed the green tag “Upgrade available”
Click on “Maintenance mode” link on the header The “Maintenance” page is displayed
Set to “Yes” the “Enable store” switch button > Click on “Save” button * A “Successful update” message is displayed
* “Enable store” is set to “Yes” and green
* The “Maintenance mode” link is removed from the header of the store
Go back to the FO > Reload the page Homepage is well displayed
Scroll down in the homepage and search the “NEW PRODUCTS” block The “NEW PRODUCTS” block should be displayed with no errors and “all new products” list
Case 2: Upgrade without shop on maintenance
Click on “Upgrade anyway” button
* After loading, a green message “Upgrade action on module ps_newproducts succeeded.” is displayed
* The module is upgraded, the button at the right of the module is displaying “Configure”
Reload the page The module should be:
* Upgraded and displayed “Configure” in the right button
* Displayed the latest version instead of the current to the new version
* Removed the green tag “Upgrade available”
Click on “View my shop” link in the header > Click on the new tab The new tab is displayed the FO of the shop with the homepage
Scroll down in the homepage and search the “NEW PRODUCTS” block The “NEW PRODUCTS” block should be displayed with no errors and “all new products” list