-
Notifications
You must be signed in to change notification settings - Fork 19
Android Sync V2
Create a standalone Sync chain using QR code
- Clean install
- Go to Settings -> Advanced -> Sync
- Click on Allow for camera access
- Click on
Start a new sync chain
- Click on
Add a mobile device
- Verify QR code loads correctly
- Click on Done
- Verify device is listed correctly
Create a standalone Sync chain using Code words
- Clean install
- Go to Settings -> Advanced -> Sync
- Click on Allow for camera access
- Click on
Start a new sync chain
- Click on
Add a computer
- Verify code words is shown correctly
- Click on Done
- Verify device is listed correctly
Remove a sync chain when device is offline
- Clean install
- Create a sync chain on the device
- Disconnect network on device
- Go to Settings -> Advanced -> Sync -> Remove device
- Make sure error message is shown for no network connectivity
Remove sync chain on device
- Create a sync chain on the device
- Go to Settings -> Advanced -> Sync -> Remove device
- Ensure sync chain is removed and goes back to optin page
- Ensure Credentials/Identity is removed on
brave://sync-internals
Sync chain creation
- Clean install
- Disconnect network on device
- Go to Settings -> Advanced -> Sync -> Start a new sync chain
- Ensure device name is not listed
- Verify Categories button is enabled
- Verified you
Add another device
button is enabled - Verify QR code shows up when
Add a mobile
option is selected - Verify code words shows up when
Add a Computer
option is selected - Verify if device goes online sync setup process is complete and shows the device name
Sync chain removal
- Clean install
- Join a sync chain either by scanning QR code or by adding code words
- Put the device in aeroplane mode or disconnect network
- Got to Settings -> Advanced -> Sync
- Click on
Remove this device
- Bring device back online, ensure device is removed from sync chain
Verify Identity of sync chain
- Clean install
- Create a standalone sync chain on the device
- Go to
chrome://sync-internals
copy/make note ofUsername
and syncClient ID
under Identity - Go to settings and remove the sync chain
- Recreate a standalone sync chain again on the same device
- Verify values are different from the one created in step 3
Verify Credentials of sync chain
- Create a standalone sync chain on the device
- Go to
chrome://sync-internals
- Verify under Credentials in brave://sync-internals,
Has token
is set toTrue
Verify Encryption of sync chain
- Create a standalone sync chain on the device
- Go to
chrome://sync-internals
- Verify under Encryption heading,
-
Encryption Types
listsBookmarks, Preferences, Passwords, Autofill Profiles, Autofill, Autofill Wallet Metadata, Themes, Typed URLs, Extensions, Search Engines, Sessions, Apps, App settings, Extension settings, Dictionary, Favicon Images, Favicon Tracking, Device Info, App List, Arc Package, Printers, Reading List, Send Tab To Self, Wifi Configurations, Web Apps, OS Preferences
-
Passphrase Type
isPassphraseType::kCustomPassphrase
-
No code words
- Clean install
- Go to Settings -> Advanced -> Sync
- Select
Scan or enter sync code
- Select
Enter code words
- Click on
Confirm
- Ensure warning message is shown that says `Sync could not be setup [Incorrect number of words]
Wrong code words
- Clean install
- Go to Settings -> Advanced -> Sync
- Select
Scan or enter sync code
- Select
Enter code words
and type in incorrect sync codes - Click on
Confirm
- Ensure warning message is shown that says `Sync could not be setup [Wrong sync code]
Leading and trailing spaces
- Clean install
- Go to Settings -> Advanced -> Sync
- Select
Scan or enter sync code
- Select
Enter code words
- Add whitespace leading to sync code and after the code words
- Click on
Confirm
- Ensure Sync chain is created successfully
Android <> Android Sync
- Clean install on
Device A
- Create a sync chain on the device
- Click on
Add another device
- Click on
Add a mobile
device - Scan the QR code on a
Device B
- Ensure sync chain is created on
Device B
and is listed under devices onDevice A
- Verify code words is same on both the devices
- Verify
Username
under Identity inbrave://sync-internals
is same on both devices
Android <> Desktop Sync
- Clean install on
Device A
- Create a sync chain on the device
- Click on
Add another device
- Click on
Add a computer
device - Copy the code words on
Device B
- Ensure sync chain is created on
Device B
and is listed under devices onDevice A
- Verify code words is same on both the devices
- Verify
Username
under Identity inbrave://sync-internals
is same on both devices
Desktop <> Android Sync
- Clean install on desktop(Device A)
- Create a sync chain on the
Device A
- Click on
Add another device
- Click on
Add a mobile
device - Scan the QR code on a Android
Device B
- Ensure sync chain is created on
Device B
and is listed under devices onDevice A
- Verify code words is same on both the devices
- Verify
Username
under Identity inbrave://sync-internals
is same on both devices
Desktop <> Android Sync
- Clean install on desktop(Device A)
- Create a sync chain on the
Device A
- Click on
Add another device
- Click on
Add a computer
device - Copy-paste/Type the code words on Android
Device B
- Ensure sync chain is created on
Device B
and is listed under devices onDevice A
- Verify code words is same on both the devices
- Verify
Username
under Identity inbrave://sync-internals
is same on both devices
Default sync bookmarks
- Clean install
- Create a sync chain
- Click on
Categories
- Verify Bookmarks sync is enabled by default
Sync All On/Off
- Clean install
- Create a sync chain
- Click on
Categories
- Verify Bookmarks sync is enabled by default
- Enable
Sync All
option - Ensure all sub categories gets enabled
- Turn off
Sync All
- Ensure all sub categories remain enabled and user has to turn off them individually
Autofill On
- Clean install on Android
Device A
- Create a sync chain and enable Autofill sync
- Go to Settings -> Basics -> Addresses and More -> Add address
- Save new address
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure address from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure address is sync'd on
Device C
as well
Autofill Off
- Clean install on Android
Device A
- Create a sync chain and keep defaults (Autofill disabled)
- Go to Settings -> Basics -> Addresses and More -> Add address
- Save new address
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure address from
Device A
is not sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure address is not sync'd on
Device C
as well
Edit Autofill
- Clean install on Android
Device A
- Create a sync chain and enable Autofill sync
- Go to Settings -> Basics -> Addresses and More -> Add address
- Save new address
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure address from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure address is sync'd on
Device C
as well - Edit address on
Device B
, ensure the update propagates to all devices on the chain - Edit address on
Device C
, ensure the new update is propagated to all devices on the chain
Delete Autofill
- Clean install on Android
Device A
- Create a sync chain and enable Autofill sync
- Go to Settings -> Basics -> Addresses and More -> Add address
- Save new address
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure address from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure address is sync'd on
Device C
as well - Delete address on
Device B
, ensure the address is removed on all devices
Bookmarks On
- Clean install on Android
Device A
- Add a few bookmarks
- Create a sync chain and enable Bookmark sync
- Add a second set of bookmarks
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure all bookmarks from
Device A
is sync'd onDevice B
- Add a bookmark on
Device B
- Ensure bookmark from
Device B
is sync'd onDevice A
- Add a desktop
Device C
to the sync chain - Ensure all bookmarks from
Device A
andDevice B
is sync'd to desktop
Bookmarks off
- Clean install on Android
Device A
- Add a few bookmarks
- Create a sync chain and enable Bookmark sync
- Add a second set of bookmarks
- Add Android
Device B
to the sync chain and disable Bookmark sync - Wait till sync connection is established and device syncs
- Ensure no bookmarks from
Device A
is sync'd onDevice B
- Add a bookmark on
Device B
- Ensure bookmark from
Device B
is not sync'd onDevice A
- Add a desktop
Device C
to the sync chain and enable Bookmark sync - Ensure only bookmarks from
Device A
is sync'd to desktop
Edit Bookmarks
- Clean install on Android
Device A
- Create a sync chain and enable Bookmark sync
- Visit
https://brave.com
and add it as bookmark - Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure
https://brave.com
fromDevice A
is sync'd onDevice B
- Visit
https://espn.com
onDevice B
and bookmark - Ensure bookmark from
Device B
is sync'd onDevice A
- On
Device B
edithttps://brave.com
tohttps://basicattentiontoken.org
- Ensure
https://brave.com
updates tohttps://basicattentiontoken.org
onDevice A
as well - Add a desktop
Device C
to the sync chain and enable Bookmark Sync - Ensure
Device C
gets two bookmarks under Mobile Bookmarkshttps://basicattentiontoken.org
andhttps://espn.com
- Edit
https://espn.com
tohttps://formula.com
on desktop - Ensure
https://espn.com
updates tohttps://formula.com
on bothDevice A
andDevice B
Delete Bookmarks
- Clean install on Android
Device A
- Create a sync chain and enable Bookmark sync
- Visit
https://brave.com
and add it as bookmark - Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure
https://brave.com
fromDevice A
is sync'd onDevice B
- Visit
https://espn.com
onDevice B
and bookmark it - Ensure bookmark from
Device B
is sync'd onDevice A
- On
Device B
deletehttps://brave.com
- Ensure
https://brave.com
is removed onDevice A
as well - Add a desktop
Device C
to the sync chain and enable Bookmark Sync - Ensure
Device C
gets onlyhttps://espn.com
under Mobile Bookmarks - Delete
https://espn.com
on desktop - Ensure all bookmarks are removed from all the devices in chain
Reorder Bookmarks
- Clean install on Android
Device A
- Create a sync chain and enable Bookmark sync
- Visit
https://brave.com
and add it as bookmark under a folderFolder 1
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure
Folder 1
folder fromDevice A
is sync'd onDevice B
- Visit
https://espn.com
onDevice B
and bookmark it under folderFolder 2
- Ensure
Folder 2
fromDevice B
is sync'd onDevice A
- Add a desktop
Device C
to the sync chain and enable Bookmark Sync - Ensure
Device C
gets two bookmarks folders under Mobile Bookmarks - Create a new folder called
Android
on bookmark toolbar and moveFolder 1
andFolder 2
under it - Ensure both
Device A
andDevice B
gets the sync update and have a new folder calledBookmarks
at root which containsAndroid
folder
History On
- Clean install on Android
Device A
- Create a sync chain and enable History sync
- Browse some sites on
Device A
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure history from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure history is sync'd on
Device C
as well
History Off
- Clean install on Android
Device A
- Create a sync chain and disable History sync
- Browse some sites on
Device A
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure history from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure history is sync'd on
Device C
as well
Delete History
- Clean install on Android
Device A
- Create a sync chain and enable history sync
- Visit
https://slashdot.org
onDevice A
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Add a desktop
Device C
to the sync chain - Visit a
https://brave.com
onDevice C
- Ensure
https://slashdot.org
andhttps://brave.com
is listed on all three devices - Delete browsing history on
Device B
- Ensure history is removed on all devices
Private Tabs History
- Clean install on Android
Device A
- Create a sync chain and enable History sync
- Browse some sites on
Device A
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure history from
Device A
is sync'd toDevice B
- Visit a site in a private tab on
Device B
- Ensure sites visited in private tab doesn't sync
Open Tabs On
- Clean install on Android
Device A
- Create a sync chain and enable Open tabs sync
- Add desktop
Device B
to the sync chain - Enable Open tabs sync on desktop
- Visit a page on desktop
- Right click on the tab and click on
Send to <device name> Phone
- Ensure
Device A
gets a notification message about the page visited and showsSent from <device name>
- Click on notification message on Android, loads the page in a new tab
- Visit a second page on Desktop and send it to mobile device
- Ensure Android device gets a new notification about the site sent from desktop
- Ensure page is automatically added in history
Open Tabs Off
- Clean install on Android
Device A
- Create a sync chain and disable Open tabs sync
- Add desktop
Device B
to the sync chain - Enable Open tabs sync on desktop
- Visit a page on desktop
- Right click on the tab and click on
Send to <device name> Phone
- Ensure
Device A
doesn't get any notification of the page that was sent - Ensure
Device A
doesn't have the page listed in history
Send tabs from Android -> Desktop
- Clean install on Android device
- Create a sync chain on Android
- Add a desktop device to the sync chain using code words
- Visit some page on Android
- On active tab, press Menu -> Share -> Send to your devices
- Select desktop device which is part of sync chain
- Open tabs should be sent to desktop
Passwords On
- Clean install on Android
Device A
- Create a sync chain and enable Password sync
- Visit a site and enter password
- Save password when prompted
- Sign out and click on login field, ensure saved password prompt is shown
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure password from
Device A
is sync'd toDevice B
- Visit the same site on
Device B
and click on login field, ensure saved password prompt is shown - Add a desktop
Device C
to the sync chain - Ensure password is sync'd on
Device C
as well - Visit the same site on
Device B
and click on login field, ensure saved password prompt is shown
Passwords Off
- Clean install on Android
Device A
- Create a sync chain and disable Password sync
- Visit a site and enter password
- Save password when prompted
- Sign out and click on login field, ensure saved password prompt is shown
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure password from
Device A
is not sync'd toDevice B
- Visit the same site on
Device B
and click on login field, ensure saved password prompt is shown - Add a desktop
Device C
to the sync chain - Ensure password is not sync'd on
Device C
as well - Visit the same site on
Device B
and click on login field, ensure saved password prompt is shown
Delete Passwords
- Clean install on Android
Device A
- Create a sync chain and enable Password sync
- Visit a site and enter password
- Save password when prompted
- Sign out and click on login field, ensure saved password prompt is shown
- Add Android
Device B
to the sync chain - Wait till sync connection is established and device syncs
- Ensure password from
Device A
is sync'd toDevice B
- Add a desktop
Device C
to the sync chain - Ensure password is sync'd on
Device C
as well - Visit the same site on
Device C
and click on login field, ensure saved password prompt is shown - Delete password on
Device B
, ensure password is removed on all devices
Settings On
- Clean install on Android
Device A
- Create a sync chain and enable Settings sync
- Go to Settings -> Privacy -> Enable Preload pages for faster browsing and searching
- Add Android
Device B
to the sync chain and enable Settings sync - Wait till sync connection is established and device syncs
- Ensure
Preload pages for faster browsing and searching
setting is enabled onDevice B
Settings Off
- Clean install on Android
Device A
- Create a sync chain and enable Settings sync
- Go to Settings -> Privacy -> Enable Preload pages for faster browsing and searching
- Add Android
Device B
to the sync chain and disable Settings sync - Wait till sync connection is established and device syncs
- Ensure
Preload pages for faster browsing and searching
setting is not sync'd onDevice B
Chromium Upgrade tests
- Enable sync chain on Android device A
- Connect Android device B to the sync chain
- Ensure both devices can see each other and can sync bookmark
- Close browser on device A via Menu -> Exit
- Relaunch browser on device A
- Wait a minute on device A
- Add bookmark on device A
- Ensure new bookmark was synced to device B