Skip to content

Premium VPN Tests

Stephen Donner edited this page Oct 11, 2022 · 36 revisions

Premium VPN Tests

You should run Brave using --vmodule="*/vpn/*"=2 --enable-logging=stderr --v=0

desktop, sign-up

  • New profile, launch Brave using --vmodule="*/vpn/*"=2 --enable-logging=stderr --v=0
  • Open brave://flags
  • Set brave://flags/#skus-sdk to Enabled
  • Set brave://flags/#brave-vpn to Enabled
  • Shut down Brave
  • Relaunch using the same commandline args
  • Load account.bravesoftware.com.
  • Enter basic-authentication credentials and click Sign in on the modal dialog
  • Enter a new test/throwaway email address, e.g. [email protected]
  • Click on the Get login link button.
  • Check for a confirmation email (for e.g. but use your own: [email protected], can be used with https://www.mailinator.com/v4/public/inboxes.jsp?to=brave) and click either the embedded Confirm your access button or the link.
  • Confirm the tab opens on https://account.brave.com/account.
  • Click on the Browse plans button
  • Scroll down to Brave VPN Subscription
  • Click on Buy now
  • Confirm you are taken to a Stripe checkout page, similar to https://checkout.stripe.com/pay/cs_test_b....
  • Fill out valid test data for all fields, using https://stripe.com/docs/testing#cards.
  • Ensure the email address used here matches the one on the account page.
  • Click Subscribe.
  • Confirm, after some processing time, it automatically redirects and loads https://account.bravesoftware.com/account/?intent=provision&order_id=7d8c214....
  • Click on Refresh Brave VPN
  • Confirm there's a message saying You have active credentials loaded!
  • Click on the VPN button in the toolbar
  • Click on the toggle to Connect
  • Confirm you are connected to the VPN

desktop, log in

PREREQUISITE: run desktop, sign up

  • Load account.bravesoftware.com
  • Enter your Brave Premium-enabled email address and click the Get Login link.
  • Confirm you see A login email is on the way page, which has a try again link.
  • Click on either the Log in to Brave button or link in the email.
  • Confirm you are redirected and logged in to a page like https://account.brave.com/account/?intent=recover&product_id=8297c863-bdd8-4ef4-b988-d9e461982c5a, and then to https://account.brave.com.

desktop, edit payment - failure

PREREQUISITE: run desktop, log in

  • On the Account pane, click on the Edit payment link under Your plan subscriptions.
  • Confirm you are taken to a Stripe page.
  • Enter invalid [expired, random, etc.] pieces of the credentials.
  • Confirm Stripe catches errors and only proceeds when all pertinent information is correct.

desktop - edit payment - success

### PREREQUISITE: run `desktop, log in` - [ ] On the `Account` pane, click on the `Edit payment` link under `Your plan subscriptions`. - [ ] Confirm you are taken to a Stripe page. - [ ] Confirm you can add a new card - [ ] Confirm once your new card is added, you can delete the old card. - [ ] Click on `Return to Brave Software` - [ ] Confirm you are taken to `account.bravesoftware.com/account` where your plan subscription is valid.

desktop, cancel

### PREREQUISITE: run `desktop, log in` - [ ] Load `account.bravesoftware.com/account/` - [ ] Click on `Cancel plan` under `Brave VPN Subscription` - [ ] Confirm you get a `Cancel subscription` page with pertinent info - [ ] Click the `Cancel subscription` button - [ ] Click on `Return to account` on the `Your plan has been canceled.` page - [ ] Confirm `Your subscription has been canceled. Access until [date is 1 month from now].` message - [ ] Confirm `Renew plan` and `Refresh Brave VPN` links

desktop, renew plan

PREREQUISITE: run desktop, cancel

  • Ensure you're logged in to an account with a canceled Brave VPN subscription
  • Click on Renew plan
  • Confirm the Stripe checkout page loads, with your email and payment details
  • Click Subscribe
  • Confirm Edit payment and Cancel plan links on https://account.bravesoftware.com/account/

desktop (purchase on machine 1) -> desktop (link VPN creds with machine 2)

machine 1

  1. install latest beta
  2. launch Brave
  3. open brave://flags
  4. set/ensure Enable experimental SKU SDK is Enabled
  5. set/ensure Enable experimental Brave VPN is Enabled
  6. click on Relaunch
  7. confirm the VPN button appears in the toolbar
  8. load account.bravesoftware.com
  9. enter basic auth (in 1PW), click Sign In
  10. enter a new test/throwaway email address, e.g. [email protected]
  11. click on the Get login link button
  12. Check for a confirmation email (for e.g. but use your own: https://www.mailinator.com/v4/public/inboxes.jsp?to=something-unique-here) and click either the embedded Confirm your access button or the link
  13. confirm the tab opens https://account.bravesoftware.com/account
  14. click on Browse plans
  15. on https://account.bravesoftware.com/plans/, scroll down to Brave VPN Subscription, and click on Buy now
  16. confirm you are taken to a Stripe checkout page, similar to https://checkout.stripe.com/pay/cs_test_b...
  17. fill out valid test data for all fields, using https://stripe.com/docs/testing#cards
  18. click Subscribe
  19. click the VPN button in the toolbar
  20. toggle from Disconnected to Connecting...
  21. click Allow to accept the VPN configuration (macOS only)
  22. click again on the VPN button
  23. toggle from Disconnected to Connecting...
  24. confirm via various methods that you are truly VPN-connected 🎉

machine 2

  1. install latest beta
  2. launch Brave
  3. open brave://flags
  4. set/ensure Enable experimental SKU SDK is Enabled
  5. set/ensure Enable experimental Brave VPN is Enabled
  6. click on Relaunch
  7. confirm the VPN button appears in the toolbar
  8. load account.bravesoftware.com
  9. enter basic auth (in 1PW), click Sign In
  10. enter the same email address you purchased VPN with, on machine 1
  11. click on the Get login link button
  12. check for a confirmation email and click either the blurple Log in to Brave button or the link below it
  13. confirm you land on https://account.bravesoftware.com/account/
  14. click on the Refresh Brave VPN button
  15. confirm you see YOU HAVE ACTIVE CREDENTIALS LOADED! messaging
  16. click on the VPN button on the toolbar
  17. toggle Brave Firewall & VPN from Disconnected to Connected
  18. click on the Allow button when prompted by macOS or Windows to add the Brave Browser Beta VPN configuration
  19. confirm you see all visible Connected indicators and states:
    • green VPNstatus indicator in theVPN` button, main toolbar
    • OS-appropriate system-level network config added and active
    • clicking on "hamburger" menu -> Brave VPN -> VPN should show Connected toggle state/status
  20. confirm via various methods[0] that you are truly VPN-connected 🎉

[0] wireshark, Charles Proxy, Fiddler (Everywhere) etc.

Android (purchase) -> desktop (link)

  1. install latest beta
  2. launch Brave
  3. tap through onboarding
  4. tap the 3-dots menu
  5. tap Settings
  6. tap About Brave
  7. tap Application version a bunch of times
  8. swipe down and tap on Developer options
  9. tap QA Preferences
  10. enter the password (found in 1PWD)
  11. tap to toggle Brave VPN to On
  12. tap Relaunch Now
  13. tap on the 3-dots menu
  14. swipe down and tap on Brave VPN
  15. tap on Monthly subscription (more coming soon...)
## Android -> iOS ## desktop -> Android
  1. install latest beta
  2. launch Brave
  3. open brave://flags
  4. set/ensure Enable experimental SKU SDK is Enabled
  5. set/ensure Enable experimental Brave VPN is Enabled
  6. click on Relaunch
  7. confirm the VPN button appears in the toolbar
  8. load account.bravesoftware.com
  9. enter basic auth (in 1PW), click Sign In
  10. enter a new test/throwaway email address, e.g. [email protected]
  11. click on the Get login link button
  12. Check for a confirmation email (for e.g. but use your own: https://www.mailinator.com/v4/public/inboxes.jsp?to=something-unique-here) and click either the embedded Confirm your access button or the link
  13. confirm the tab opens https://account.bravesoftware.com/account
  14. click on Browse plans
  15. on https://account.bravesoftware.com/plans/, scroll down to Brave VPN Subscription, and click on Buy now
  16. confirm you are taken to a Stripe checkout page, similar to https://checkout.stripe.com/pay/cs_test_b...
  17. fill out valid test data for all fields, using https://stripe.com/docs/testing#cards
  18. click Subscribe
  19. click the VPN button in the toolbar
  20. toggle from Disconnected to Connecting...
  21. click Allow to accept the VPN configuration (macOS only)
  22. click again on the VPN button
  23. toggle from Disconnected to Connecting...
  24. confirm via various methods that you are truly VPN-connected 🎉
  25. [linking desktop credentials to Android steps go here]

Outstanding issue:

desktop -> iOS

iOS -> Android

iOS -> desktop