wp-e2e-tests icon indicating copy to clipboard operation
wp-e2e-tests copied to clipboard

Update add domain to existing site to register (and cancel) .live domain

Open alisterscott opened this issue 8 years ago • 7 comments

We can use the sandbox method for adding a fake .live domain to an existing site and purchase it then refund and cancel it.

alisterscott avatar Dec 01 '17 05:12 alisterscott

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 avatar Dec 05 '17 07:12 alisterscott

@alisterscott We can do this with a non-default user, to make one for this case?

Stojdza avatar Jul 23 '18 13:07 Stojdza

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 avatar Jul 24 '18 06:07 alisterscott

@alisterscott what do you think about this scenario:

  1. We have existing user and existing <domain_name>.wordpress.com domain
  2. Choose 'Add' domain
  3. Search and select .live domain (we should search something like <domain_name>+timestamp, to be sure that every time domain is unique)
  4. Purchase domain
  5. Refund and cancel

Is wp-manage-domains-spec.js right place to put this test in?

Stojdza avatar Aug 03 '18 15:08 Stojdza

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 avatar Aug 06 '18 02:08 alisterscott

@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.

Stojdza avatar Aug 23 '18 16:08 Stojdza

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

alisterscott avatar Aug 24 '18 07:08 alisterscott