Until a reliable unit tests and integration tests system is up and running, a sanity test need to be performed manually before each release.
Actions
- Go to the extension manager
- Open the details page for the sideloaded Nano Adblocker
- Open the background console
- Enable error collection
Expected
- No error is ever logged to the background console
- No error is ever collected
Actions
- Open the dashboard using the popup panel
Expected
- Correct icon shows in the top left corner
Actions
- Go to
Settings
tab - Click
Reset to default settings...
- Confirm action
Expected
- The confirm prompt mentions
Nano
- Settings are restored (check outdated warning markers in
Filter lists
tab) - Filters cache is purged (check the last modified timestamp of
EasyList
) - Filters are reloaded from the extension package (check
Network
tab of the background console) - The subfilter of the uBlock base filter is properly loaded
Actions
- Open the advanced settings page
Expected
- Correct highlighting style is used
Actions
- Go to
My filters
tab - Add these filters:
||www1.example.com^$mp4
||www2.example.com^$empty
||www3.example.com^$redirect=
||www4.example.com^$redirect=noopjs
*/*$redirect=nooptext
/[w\d]\.example\.com/$mp4
||www5.example.com^$mp4,empty
@@||www6.example.com^$mp4
1
||ww2.example.com^$xmlhtprequest
www1.example.com#@#+js()
www2.example.com##+js()
www3.example.com##+js(nanop-click-elements-onload, a)
||example.com^$csp=default-src 'none'; report-to https://other.example.com;
Expected
- No error thrown in the background console
- Highlighter markers:
- Section
1
:- Line
3
:redirect=
marked as invalid
- Line
- Section
3
:- Line
1
:xmlhtprequest
marked as invalid
- Line
- Section
4
:- Line
2
:##+js()
marked as invalid
- Line
- Section
- Linter markers:
- Section
1
:- Line
3
:1
warning - Line
4
:1
warning - Line
5
:2
warnings - Line
6
:1
warning - Line
7
:1
error - Line
8
:1
error
- Line
- Section
2
:- Line
1
:1
error
- Line
- Section
3
:- Line
1
:1
error
- Line
- Section
4
:- Line
2
:1
error - Line
3
:1
error
- Line
- Section
5
:- Line
1
:1
error
- Line
- Section
Filter lists
tab shows5
total filters forMy filters
Actions
- Refresh the dashboard
Expected
- Warnings and errors are reloaded
Cleanup
- Remove added filters
Actions
- Go to
Whitelist
tab
Expected
- Correct highlighting style is used
Actions
- Go to
About
tab
Expected
- Page shows the correct information
Actions
- Go to
example.com
- Open the popup panel
Expected
- Refresh button is visible
- 6 buttons are shown in the bottom toolbar
- Correct extension name and version are displayed
Actions
- Click
Less
until the popup panel is completely contracted - Click
More
twice
Expected
- The top toolbar appears, then the firewall panel appears
Actions
- Click
Less
twice
Expected
- The firewall panel disappears, then the top toolbar disappears
Actions
- Open the bug reporter using the popup panel
Expected
- Quick Issue Reporter opens
- Correct URL is filled into the form automatically
Actions
- Open the logger using the popup panel
- Go to
example.com
Expected
- Appropriate network requests are logged
- Correct icons are shown in the toolbar
Actions
- Bring up the popup panel inside the logger
Expected
- Icon in the toolbar changes properly
- Correct extension name and version are displayed
- Two rows of tools are visible
- Refresh button is visible
Actions
- Go to
https://gorhill.github.io/uBlock/tests/
- Click
CSS selector-based cosmetic filters
- Add filters as instructed
- Reload the page
- Wait 5 seconds
- Repeat for
Procedural cosmetic filters
Expected
- All boxes are green and stay green
- No highlighter marker and no linter marker in
My filters
tab
Cleanup
- Remove added filters
Actions
- Go to
example.com
- Bring up the element picker using the popup panel
- Pick some text
- Add the filter
- Refresh the page
Expected
- Picked text stays hidden
- No highlight marker and no linter marker in my filters tab
Cleanup
- Remove added filter