Name Description Size
accessibility.spec.ts 16354
ariaqueryhandler.spec.ts 22563
assert-coverage-test.js 828
assets 47
browser.spec.ts 2817
browsercontext.spec.ts 7335
CDPSession.spec.ts 3894
chromiumonly.spec.ts 5907
click.spec.ts 12262
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 12918
defaultbrowsercontext.spec.ts 3094
dialog.spec.ts 2242
diffstyle.css 166
drag-and-drop.spec.ts 5535
elementhandle.spec.ts 19385
emulation.spec.ts 14605
evaluation.spec.ts 16048
EventEmitter.spec.ts 5455
fixtures 2
fixtures.spec.ts 3418
frame.spec.ts 10717
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 11409
idle_override.spec.ts 2936
ignorehttpserrors.spec.ts 4698
input.spec.ts 11582
jshandle.spec.ts 13413
keyboard.spec.ts 13928
launcher.spec.ts 33800
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 9173
mouse.spec.ts 7939
navigation.spec.ts 28251
network.spec.ts 28238
NetworkManager.spec.ts 19621
oopif.spec.ts 8894
page.spec.ts 68568
queryselector.spec.ts 17363
README.md # Puppeteer unit tests 3586
requestinterception-experimental.spec.ts 31910
requestinterception.spec.ts 28490
run_static_server.js 1251
screenshot.spec.ts 11599
target.spec.ts 10353
touchscreen.spec.ts 1713
tracing.spec.ts 4917
tsconfig.json 114
tsconfig.test.json 94
utils.js @returns {string} 3775
waittask.spec.ts 28220
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