Name Description Size
accessibility.spec.ts 16273
ariaqueryhandler.spec.ts 21878
assert-coverage-test.js 828
assets 43
browser.spec.ts 2817
browsercontext.spec.ts 7335
CDPSession.spec.ts 3894
chromiumonly.spec.ts 5907
click.spec.ts 12378
cookies.spec.ts 17193
coverage-utils.js We want to ensure that all of Puppeteer's public API is tested via our unit tests but we can't use a tool like Istanbul because the way it instruments code unfortunately breaks in Puppeteer where some of that code is then being executed in a browser context. So instead we maintain this coverage code which does the following: * takes every public method that we expect to be tested * replaces it with a method that calls the original but also updates a Map of calls * in an after() test callback it asserts that every public method was called. We run this when COVERAGE=1. 5959
coverage.spec.ts 11465
defaultbrowsercontext.spec.ts 3094
dialog.spec.ts 2242
diffstyle.css 166
elementhandle.spec.ts 16659
emulation.spec.ts 14332
evaluation.spec.ts 16048
EventEmitter.spec.ts 5455
fixtures 2
fixtures.spec.ts 3418
frame.spec.ts 10235
golden-chromium 26
golden-firefox 14
golden-utils.js @param {?Object} actualBuffer @param {!Buffer} expectedBuffer @param {!string} mimeType @returns {?{diff: (!Object:undefined), errorMessage: (string|undefined)}} 5106
headful.spec.ts 10376
idle_override.spec.ts 2936
ignorehttpserrors.spec.ts 4698
input.spec.ts 11582
jshandle.spec.ts 9946
keyboard.spec.ts 13928
launcher.spec.ts 31148
mocha-ts-require.js We ignore the lib/ directory because that's already been TypeScript compiled and checked. So we don't want to check it again as part of running the unit tests. 344
mocha-utils.ts 8781
mouse.spec.ts 7975
navigation.spec.ts 28251
network.spec.ts 22143
oopif.spec.ts 2266
page.spec.ts 61173
queryselector.spec.ts 17363
README.md # Puppeteer unit tests 3586
requestinterception.spec.ts 27174
run_static_server.js 1251
screenshot.spec.ts 11254
target.spec.ts 10353
touchscreen.spec.ts 1713
tracing.spec.ts 4271
tsconfig.json 114
tsconfig.test.json 94
utils.js @returns {string} 3775
waittask.spec.ts 27698
worker.spec.ts 4263
.eslintrc.js The mocha tests run on the compiled output in the /lib directory so we should avoid importing from src. 276