Description
Fixes #55239.
Fixes #55240.
Changes proposed in this Pull Request
Displays a warning prior cancelling a plan from an Atomic site informing that all third party plugins/themes and their content will be removed. It also provides a link to download a backup.
![Screen Shot 2021-09-21 at 12 45 00](https://user-images.githubusercontent.com/1233880/134157526-6066c342-afa8-45ff-bad7-340a4250b04c.png)
Testing instructions
- Use the Calypso live link below and append
?flags=atomic/automated-revert
at the end of the URL.
- Go to Upgrades > Purchases.
- Select the site plan.
- Go through the removal/cancellation flow.
- Make sure you get the feedback form as first step.
- Make sure that “Step 1 of 2” is displayed in the header.
- Make sure you can go to the next step after filling the form.
- Make sure you get the proceed with caution form as second step.
-
- Make sure that “Step 2 of 2” is displayed in the header.
- Make sure the link to the backup works correctly.
- Make sure you are required to tick all the checkboxes before being submitting the form.
- Submit the form.
- Make sure you get a success notification indicating the removal/cancellation has been queued.
- Manually run the
atomic_subscription_revert_after_lossless_import
async job (see testing instructions in D66763-code).
- Reload Calypso.
- Make sure the Atomic site is on a Free plan now.
Unfortunately, no screenshots were provided by the developer.