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.
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
ifuseIncognitoBrowserContext
is true. Best practices, attempt to prevent memory leaks.