Automattic / wp-calypso

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

Ecommerce tailored flow does not reset when recur param is changed. #74641

Open aneeshd16 opened 1 year ago

aneeshd16 commented 1 year ago

Quick summary

The code assumes that the user is in the same flow when the recur param is changed. If the yearly product is already in cart and the user enters the monthly flow, they'll still see the yearly product in cart. (and vice versa)

Steps to reproduce

  1. Go to /setup/ecommerce?recur=yearly.

  2. Proceed through the steps till you reach checkout.

  3. In the same tab, go to /setup/ecommerce?recur=monthly.

  4. On the domains step, the free option would be hidden, and instead, you would be given a choice to choose the site address you chose previously.

    image
  5. Select any domain and proceed to checkout.

  6. The cart would have the yearly plan instead of the monthly plan.

What you expected to happen

The correct plan should be present in the cart.

What actually happened

The plan added via the previous flow was present in the cart.

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Markup on 2023-04-12 at 12:14:42

I selected monthlytest.blog at this step, and then arrived back at the cart for the yearly plan with that site address

Markup on 2023-04-12 at 12:17:29

📌 ACTIONS