Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings tests #122

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -29,16 +29,22 @@ Pre-Requisite: Put previous build shortcut on home screen. Also have several sit
- [ ] Make sure Brave works as custom tabs provide with Chromer browser
- [ ] Ensure custom tabs work even with sync enabled/disabled

## Autofill tests

- [ ] Test that autofill works on https://srirambv.github.io/formfiller.html

## Context menus

- [ ] Make sure context menu items in the URL bar work
- [ ] Make sure context menu items on content work with no selected text
- [ ] Make sure context menu items on content work with selected text
- [ ] Make sure context menu items on content work inside an editable control (input, textarea, or contenteditable)

## Developer Tools
## Downloads

- [ ] Verify you are able to inspect sublinks via dev tools
- [ ] Test downloading a file works and that all actions on the download item works.
- [ ] Test that PDF is downloaded over https at https://basicattentiontoken.org/BasicAttentionTokenWhitePaper-4.pdf
- [ ] Test that PDF is downloaded over http at http://www.pdf995.com/samples/pdf.pdf

## Find in page

@@ -47,54 +53,81 @@ Pre-Requisite: Put previous build shortcut on home screen. Also have several sit
- [ ] Test forward and backward find navigation
- [ ] Test failed find shows 0 results

## Site hacks

- [ ] Verify https://www.twitch.tv/adobe sub-page loads a video and you can play it

## Downloads

- [ ] Test downloading a file works and that all actions on the download item works.
- [ ] Test that PDF is downloaded over https at https://basicattentiontoken.org/BasicAttentionTokenWhitePaper-4.pdf
- [ ] Test that PDF is downloaded over http at http://www.pdf995.com/samples/pdf.pdf

## Fullscreen

- [ ] Test that entering HTML5 full screen works. And pressing restore to go back exits full screen. (youtube.com)

## Autofill tests
## Site hacks

- [ ] Test that autofill works on https://srirambv.github.io/formfiller.html
- [ ] Verify https://www.twitch.tv/adobe sub-page loads a video and you can play it

## Settings

- [ ] Verify settings change works correctly and doesn't cause crash after upgrade

## Zoom

- [ ] Test zoom in / out gestures work
- [ ] Test that navigating to a different origin resets the zoom

## Sync

- [ ] Verify you are able to join sync chain by scanning the QR code
- [ ] Verify you are able to join sync chain using code words
- [ ] Verify you are able to create a sycn chain on the device and add other devices to the chain via QR code/Code words
- [ ] Verify that bookmarks from other devices on the chain show up on the mobile device after sync completes
- [ ] Verify newly created bookmarks gets sync'd to all devices on the sync chain
- [ ] Verify existing bookmarks before joining sync chain also gets sync'd to all devices on the sync chain
- [ ] Verify sync works on a upgrade profile and new bookmarks added post upgrade sync's across devices on the chain
- [ ] Verify add a bookmark on custom tab gets sync'd across all devices in the chain
- [ ] Verify you are able to create a standalone sync chain with one device

## Bravery settings

- [ ] Check that HTTPS Everywhere works by loading http://https-everywhere.badssl.com/
- [ ] Turning HTTPS Everywhere off and shields off both disable the redirect to https://https-everywhere.badssl.com/
- [ ] Check that toggling to blocking and allow ads works as expected
- [ ] Test that clicking through a cert error in https://badssl.com/ works
- [ ] Visit https://brianbondy.com/ and then turn on script blocking, nothing should load. Allow it from the script blocking UI in the URL bar and it should work.
- [ ] Test that about:preferences default Bravery settings take effect on pages with no site settings
- [ ] Test that preferences default Bravery settings take effect on pages with no site settings
- [ ] Test that 3rd party storage results are blank at https://jsfiddle.net/7ke9r14a/7/ when 3rd party cookies are blocked
### Fingerprint Tests
- [ ] Visit https://browserleaks.com/webrtc, ensure 2 blocked items are listed in shields
- [ ] Test that https://diafygi.github.io/webrtc-ips/ doesn't leak IP address when `Block all fingerprinting protection` is on

### Rewards

- [ ] Verify wallet is auto created after enabling rewards(either via Panel or Rewards page)
- [ ] Verify account balance shows correct BAT and USD value
- [ ] Verify actions taken (claiming grant, tipping, auto-contribute) display in wallet panel
- [ ] Verify `Check back soon for a free token grant` is shown in panel when grants are not available
- [ ] Verify grant details are shown in expanded view when a grant is claimed
- [ ] Verify monthly budget shows correct BAT and USD value
- [ ] Verify you are able to exclude a publisher from the auto-contribute table by clicking on the trash bin icon in auto-contribute table
- [ ] Verify you are able to exclude a publisher by using the toggle on the Rewards Panel
- [ ] Verify you are able to restore excluded sites via `Restore All` button
- [ ] Verify when you click on the BR panel while on a site, the panel displays site specific information (site favicon, domain, attention %)
- [ ] Verify when you click on `Send a tip`, the custom tip banner displays
- [ ] Verify you are able to make one-time tip and they display in tips panel
- [ ] Verify you are able to make recurring tip and they display in tips panel
- [ ] Verify you can tip a verified publisher
- [ ] Verify you can tip a verified YouTube creator
- [ ] Verify tip panel shows a verified checkmark for a verified publisher/verified YouTube creator
- [ ] Verify tip panel shows a message about unverified publisher
- [ ] Verify BR panel shows message about an unverified publisher
- [ ] Verify you are able to perform a contribution
- [ ] Verify if you disable auto-contribute you are still able to tip regular sites and YouTube creators
- [ ] Verify that disabling Rewards and enabling it again does not lose state
- [ ] Verify that disabling auto-contribute and enabling it again does not lose state
- [ ] Verify unchecking 'Allow contribution to videos' option doesn't list any YouTube creator in ac list
- [ ] Adjust min visit/time in settings. Visit some sites and YouTube channels to verify they are added to the table after the specified settings
- [ ] Verify you are able to reset rewards from advance setting. Resetting should delete wallet and bring it back to pre-optin state
- [ ] Upgrade from older version
- [ ] Verify the wallet balance (if available) is retained
- [ ] Verify auto-contribute list is not lost after upgrade
- [ ] Verify tips list is not lost after upgrade
- [ ] Verify wallet panel transactions list is not lost after upgrade

## Sync

- [ ] Verify you are able to join sync chain by scanning the QR code
- [ ] Verify you are able to join sync chain using code words
- [ ] Verify you are able to create a sycn chain on the device and add other devices to the chain via QR code/Code words
- [ ] Verify that bookmarks from other devices on the chain show up on the mobile device after sync completes
- [ ] Verify newly created bookmarks gets sync'd to all devices on the sync chain
- [ ] Verify existing bookmarks before joining sync chain also gets sync'd to all devices on the sync chain
- [ ] Verify sync works on a upgrade profile and new bookmarks added post upgrade sync's across devices on the chain
- [ ] Verify add a bookmark on custom tab gets sync'd across all devices in the chain
- [ ] Verify you are able to create a standalone sync chain with one device

## Content tests

- [ ] Go to https://brianbondy.com/ and click on the twitter icon on the top right. Test that context menus work in the new twitter tab
@@ -103,6 +136,10 @@ Pre-Requisite: Put previous build shortcut on home screen. Also have several sit
- [ ] Open an email on http://mail.google.com/ or inbox.google.com and click on a link. Make sure it works
- [ ] Test that https://mixed-script.badssl.com/ shows up as grey not red (no mixed content scripts are run)

## Developer Tools

- [ ] Verify you are able to inspect sublinks via dev tools

## Top sites view

- [ ] Long-press on top sites to get to deletion mode, and delete a top site (note this will stop that site from showing up again on top sites, so you may not want to do this a site you want to keep there)
@@ -111,7 +148,6 @@ Pre-Requisite: Put previous build shortcut on home screen. Also have several sit

- [ ] Start loading a page, background the app, wait >5 sec, then bring to front, ensure splash screen is not shown


## Session storage

- [ ] Test that tabs restore when closed, including active tab
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.