Skip to content

Multi‐device Refresh (MDR) Test Plan (desktop)

Stephen Donner edited this page Jun 17, 2024 · 28 revisions

Multi-device Refresh (MDR) Test Plan (desktop)

Docs:

Spec:

https://docs.google.com/document/d/13HZ5ir0bCI1c83EfrrZ_aEJqt9v9_EVUJuIggHCqntI/edit?tab=t.0#heading=h.u1umkweurnde

Roadmap:

https://github.com/brave/roadmap/issues/1243

Setup:

  • Most testing will be against the latest available beta build on Windows 10-x64/Windows 11-x64 and macOS-x64
  • We'll also test v1.61.x, as this doesn't have multi-device refresh support, but needs to work nonetheless over the old API
  • Testing will be completed against account.bravesoftware.com (staging)
  • For Leo Premium only, we'll need to run using --env-leo=staging --env-ai-chat.bsg=dev --env-ai-chat-premium.bsg=dev

Purchases

Tests:

  • purchase Leo Premium

Steps:

  1. install [appropriate Brave version]
  2. launch Brave using --env-leo=staging --env-ai-chat.bsg=dev --env-ai-chat-premium.bsg=dev
  3. load account.bravesoftware.com
  4. enter basic auth username/password
  5. enter @mailinator.com test address
  6. click Get login link
  7. click on the Log in to Brave link in the resulting email
  8. click on Browse plans
  9. click on Start free trial button
  10. complete Stripe checkout
  11. confirm You have active credentials loaded! green banner and messaging
  • purchase VPN + Leo
  • purchase Brave Talk Premium
  • purchase Brave Search Premium
  • purchase all at once
  • purchase (a) specific combination(s) of the above

Refresh (redeem) credentials

Steps:

  • purchase Leo on device A
  • on device B, log in to account.bravesoftware.com with the same email address
  • click Refresh Leo on device B

Expected Results:

The credentials on device B should be valid and mirror those of device A (same expires_at)


Max limit # of actively-linked/recovered devices {1.68.x, 1.61.x}

Steps:

  • run Refresh (redeem) credentials testcase
  • repeat for 9 devices (totaling 10)
  • confirm no errors linking
  • attempt redeeming device A credentials on device # 11

Expected Results:

Confirm visible, logical error message (exceeded recovery limit for subscription from https://github.com/brave-intl/subscriptions/pull/570/files#diff-a5ce247e55d5a20707517e34bef620f2eb369b4f9b8fa44fdfb2c18a702418e8R29)?


Auto-renew (within 5 days of exp.) {1.68.x, 1.61.x}

Steps:

  1. install [appropriate Brave version]
  2. launch Brave using --env-leo=staging --env-ai-chat.bsg=dev --env-ai-chat-premium.bsg=dev
  3. load account.bravesoftware.com
  4. enter basic auth username/password
  5. enter @mailinator.com test address
  6. click Get login link
  7. click on the Log in to Brave link in the resulting email
  8. click on Browse plans
  9. click on Start free trial for Brave VPN
  10. complete Stripe checkout
  11. open brave://skus-internals
  12. confirm created_at and expires_at are 1 month apart
  13. quit Brave
  14. time-travel (advance system clock) to 4 days before expires_at for VPN in brave://skus-internals
  15. relaunch Brave
  16. wait a couple minutes
  17. check brave://skus-internals

Expected Results:

Product shows as ActiveCredentials in brave://skus-internals with a valid, extended expires_at value; should be 1 month past the initial expires_at


Cancellation

Steps:

  • purchase Leo
  • click cancel plan, cancel subscription

Expected Results:

Product shows as Canceled in brave://skus-internals, with an appropriate expires_at value (still valid until then)


Renewal

Steps:

  • purchase VPN
  • cancel VPN
  • renew plan

Expected Results:

Product shows as ActiveCredentials in brave://skus-internals with a valid, extended expires_at value