Skip to content

Premium VPN Tests

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

Premium VPN Tests

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

Outstanding/known issues:

Cross-platform VPN launch project board

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.bravesoftware.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.bravesoftware.com/account/?intent=recover&product_id=8297c863-bdd8-4ef4-b988-d9e461982c5a, and then to https://account.bravesoftware.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, missing VPN config

PREREQUISITE: run desktop, log in

  • On macOS, open System Preferences... -> Network
  • Select the BraveVPN config
  • Click on the - to remove it
  • Click Apply
  • Reconnect to VPN via any method
  • Confirm you are prompted to Add the BraveVPN config

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 are present

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 -> desktop credentials linking

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 -> desktop credentials linking

desktop

  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 credentials linking

TBD

desktop -> Android credentials linking

PREREQUISITE: run desktop, sign-up

  • Switch to your Android device
  • Install the latest nightly
  • Launch Brave
  • Tap through onboarding
  • Tap the 3-dots menu
  • Tap Settings -> Developer options -> QA Preferences
  • Input the QA code and tap OK
  • Tap on Brave VPN to toggle it to On
  • Tap Relaunch Now
  • Load account.bravesoftware.com
  • Log in with the same email address you used from the desktop - sign-up testcase
  • Tap on the Refresh Brave VPN button
  • Confirm you see You have active credentials loaded!
  • Tap on the 3-dots menu
  • Tap on Brave VPN
  • Tap Install VPN Profile
  • Tap OK at the Connection request dialog
  • Confirm you see a white/green VPN is enabled! message (flashes quickly)
  • Confirm you're connected to Brave VPN via whatismyipaddress.com or speed.cloudflare.com or similar

Outstanding issue:

desktop -> iOS credentials linking

PREREQUISITE: run desktop, sign-up

  • Switch to your iOS device
  • Install the appropriate build
  • Launch Brave
  • Load account.bravesoftware.com
  • Log in with the same email address you used from the desktop, sign-up testcase
  • Tap on the Refresh Brave VPN button
  • Confirm you see You have active credentials loaded!
  • Tap on the 3-dots menu
  • Tap Settings
  • Tap on Brave Firewall & VPN to toggle it from Disabled to Enabled
  • When prompted, click on Allow
  • Authenticate to iOS
  • After the config is added, tap Enabled to set it back to On
  • Confirm you're connected to Brave VPN via whatismyipaddress.com or speed.cloudflare.com, or similar

iOS -> Android

TBD

iOS -> desktop

TBD

Clone this wiki locally