Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.41k stars 1.99k forks source link

Site Admins can see 'Free Domain available' message, but can't claim a free domain #65913

Open kspilarski opened 2 years ago

kspilarski commented 2 years ago

Quick summary

If the plan subscription owner did not claim a domain, both the subscription owner and a site admin can see the "Free domain available" message. But if a site admin claims that, the domain is not free.

Steps to reproduce

  1. Create a site with a yearly plan.
  2. Invite an admin user to the site.
  3. On your (subscription owner) dashboard, you'll see "Free domain available" Claim.
  4. Click claim and look for a domain and add it to the cart.
  5. Go back to Domains and you'll be able to select another domain at a certain price.
  6. Log in to the site admin's dashboard, and you'll also see "Free domain available" Claim.
  7. Click claim and look for a domain. On the list of domains, you'll see that all domains are "Free for the first year".
  8. Select a domain. The cart will show the domain cost, and it's not free.
  9. Go back to Domains and you'll see the prices of other domains.

What you expected to happen

The site admin (not the owner of the plan subscription) should not be able to see "Free domain available" Claim if they can't get one domain for free. Or don't display this message in site admin's dashboard.

What actually happened

A site admin (not the owner of the plan subscription) can see the message "Free domain available" and can click Claim. In Domains, the domains are listed "Free for the first year". But after adding a domain, the cart will show the domain price and it's not free.

Context

Site Admin (not the owner of the plan subscription):

Free domain available Claim is displayed and domains are listed "Free for the first year":

Screen Shot 2022-07-23 at 7 02 59 PM

After selecting a domain like "travelandtransportation.buzz", the cart shows it's 9.60 EUR (sale):

Screen Shot 2022-07-23 at 7 04 34 PM

Plan Subscription owner:

Free domain available Claim is displayed and domains are listed "Free for the first year":

Screen Shot 2022-07-23 at 7 05 46 PM

After selecting a domain like "travelandtransportation.buzz", the cart shows it's free:

Screen Shot 2022-07-23 at 7 07 28 PM

Platform (Simple, Atomic, or both?)

Simple, Atomic

Theme-specific issue?

No.

Browser, operating system and other notes

MacOS 12.4, Firefox 102.

Reproducibility

Consistent

Severity

All

Available workarounds?

Yes, easy to implement

Workaround details

To get the free domain for a year, ask the plan subscription owner to claim it.

github-actions[bot] commented 2 years ago

Support References

This comment is automatically generated. Please do not edit it.

jamiepalatnik commented 2 years ago

πŸ“Œ HOUSEKEEPING

πŸ“Œ SCRUBBING

πŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

πŸ“Œ ACTIONS