Changes proposed in this Pull Request
The Google Workspace upgrade page that’s usually displayed between selecting a new domain and reaching checkout has a failsafe mechanism which will redirect back to the domains page if the cart does not contain a domain product. I believe that this might sometimes be triggered incorrectly (see the failing e2e test in #50723), but it’s hard to know because the redirect is so fast and there’s no context given to the user.
This PR adds a notice when the redirect occurs so that there’s at least a reason given for ending up on a different page.
Before:
![Screen Shot 2021-03-03 at 5 28 38 PM](https://user-images.githubusercontent.com/2036909/109881221-e9153180-7c45-11eb-953f-fdbe72c8c565.png)
After:
![Screen Shot 2021-03-03 at 5 28 27 PM](https://user-images.githubusercontent.com/2036909/109881232-ed414f00-7c45-11eb-92c8-f1bdb854fdb2.png)
Testing instructions
- Make sure your cart is empty.
- Visit the Google Workspace upgrade page directly at a URL like
/domains/add/google.com/google-apps/example.com
(the first domain name is the domain you’re supposedly adding so it can be anything; the second domain name is your wp.com site).
- Verify that after the page loads you are redirected to the “Site Domains” page which lets you search for a domain.
- Verify that you see a notice message mentioning that there is no domain in your cart.
Unfortunately, no screenshots were provided by the developer.