Update add domain to existing site to register (and cancel) .live domain
We can use the sandbox method for adding a fake .live domain to an existing site and purchase it then refund and cancel it.
One thing we need to consider in adding a domain to a common account is the cart is shared across sessions, so concurrent tests running adding domains to same user share the cart and will potentially pay for not only their own domains - this could get really messy
@alisterscott We can do this with a non-default user, to make one for this case?
We can do this with a non-default user, to make one for this case?
I think that would be best - I don't think there's a limit of how many domains we can register against an existing site - we'll soon see anyway.
We need to make sure sandbox mode is set for purchasing the .live domains
@alisterscott what do you think about this scenario:
- We have existing user and existing <domain_name>.wordpress.com domain
- Choose 'Add' domain
- Search and select .live domain (we should search something like <domain_name>+timestamp, to be sure that every time domain is unique)
- Purchase domain
- Refund and cancel
Is wp-manage-domains-spec.js right place to put this test in?
what do you think about this scenario:
sounds good
Is wp-manage-domains-spec.js right place to put this test in?
Yes
Thank you
@alisterscott Do you maybe know, is sandboxCookieValue somehow related to the specific user?
When I'm using it with the user who is dedicated for this test I cannot open Purchases page - it loads endlessly. When I try that with our default user, Purchases page loads after some time.
Do you maybe know, is sandboxCookieValue somehow related to the specific user?
I don't think so, but setting the cookie will use the store sandbox which means only sandboxed purchases will display, maybe there is an issue there with some of the sandbox store purchases