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)

Purchases

Tests:

  • purchase Leo

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 Talk Premium
  • purchase Brave Search
  • 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:

  • purchase VPN
  • be 6 days before expires_at for VPN in brave://skus-internals
  • quit Brave
  • time-travel to 2 days in the future (you are now 4 days until the original expires_at date)
  • relaunch Brave
  • wait a couple minutes
  • check brave://skus-internals

Expected Results:

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


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