pa11y / pa11y-ci

Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
https://pa11y.org
GNU Lesser General Public License v3.0
519 stars 63 forks source link

Test coverage for `useIncognitoBrowserContext` #102

Closed kkoskelin closed 4 years ago

kkoskelin commented 4 years ago

Added tests to ensure property exists in defaults and is obeyed when provided. Restructured tests because there were two beforeEach blocks running before some nested tests which resulted in extra executions of pa11y whose results were discarded and threw off the intended callCounts.

Added lines to conditionally close the browser context at the end of a given call to testRunner if useIncognitoBrowserContext is true. Best practices, attempt to prevent memory leaks.