Skip to content

Instantly share code, notes, and snippets.

@OrKoN
Created May 4, 2022 05:54
Show Gist options
  • Save OrKoN/91d653b48821989be895aa31fb4c12b7 to your computer and use it in GitHub Desktop.
Save OrKoN/91d653b48821989be895aa31fb4c12b7 to your computer and use it in GitHub Desktop.
❯ DUMPIO=1 npm run funit
> puppeteer@13.7.0-post funit
> cross-env PUPPETEER_PRODUCT=firefox npm run unit
> puppeteer@13.7.0-post unit
> npm run tsc-cjs && mocha --config mocha-config/puppeteer-unit-tests.js
> puppeteer@13.7.0-post tsc-cjs
> tsc -b src/tsconfig.cjs.json
Running unit tests with:
-> product: firefox
-> binary: .local-firefox/mac-latest/Firefox Nightly.app/Contents/MacOS/firefox
*** You are running in headless mode.
2022-05-04 07:52:49.945 plugin-container[22262:8662921] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-05-04 07:52:49.945 plugin-container[22262:8662921] nil host used in call to allowsAnyHTTPSCertificateForHost:
1651643569963 RemoteAgent DEBUG WebDriver BiDi enabled
2022-05-04 07:52:49.963 plugin-container[22262:8662921] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-05-04 07:52:49.963 plugin-container[22262:8662921] nil host used in call to allowsAnyHTTPSCertificateForHost:
1651643569963 RemoteAgent DEBUG CDP enabled
2022-05-04 07:52:49.963 plugin-container[22262:8662925] nil host used in call to allowsSpecificHTTPSCertificateForHost
2022-05-04 07:52:49.963 plugin-container[22262:8662925] nil host used in call to allowsAnyHTTPSCertificateForHost:
1651643570014 RemoteAgent TRACE Received observer notification final-ui-startup
1651643570022 WebDriver BiDi DEBUG Awaiting all initial windows to be restored before enabling the protocol
1651643570022 CDP DEBUG Awaiting all initial windows to be restored before enabling the protocol
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1651643570716 RemoteAgent TRACE Received observer notification sessionstore-windows-restored
WebDriver BiDi listening on ws://localhost:58794
1651643570729 RemoteAgent DEBUG Setting recommended pref browser.contentblocking.introCount to 99
1651643570729 RemoteAgent DEBUG Setting recommended pref browser.download.panel.shown to true
1651643570729 RemoteAgent DEBUG Setting recommended pref browser.tabs.closeWindowWithLastTab to false
1651643570729 RemoteAgent DEBUG Setting recommended pref browser.tabs.unloadOnLowMemory to false
1651643570729 RemoteAgent DEBUG Setting recommended pref browser.tabs.warnOnClose to false
1651643570730 RemoteAgent DEBUG Setting recommended pref browser.toolbars.bookmarks.visibility to never
1651643570730 RemoteAgent DEBUG Setting recommended pref browser.urlbar.merino.endpointURL to
1651643570730 RemoteAgent DEBUG Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false
1651643570730 RemoteAgent DEBUG Setting recommended pref dom.push.connection.enabled to false
1651643570730 RemoteAgent DEBUG Setting recommended pref dom.successive_dialog_time_limit to 0
1651643570730 RemoteAgent DEBUG Setting recommended pref extensions.getAddons.discovery.api_url to data:,
1651643570730 RemoteAgent DEBUG Setting recommended pref network.http.phishy-userpass-length to 255
1651643570730 RemoteAgent DEBUG Setting recommended pref browser.topsites.contile.enabled to false
DevTools listening on ws://localhost:58794/devtools/browser/753658e2-682a-408d-adbc-365f3539151b
1651643570787 RemoteAgent DEBUG CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a accepted
1651643570794 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"method":"Target.setDiscoverTargets","params":{"discover":true},"id":1}
1651643570795 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"27d2bccc-01c2-4477-a690-ab20247cbe30","type":"page","title":"","url":"about:blank","attached":false,"browserContextId":null}}}
1651643570796 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"753658e2-682a-408d-adbc-365f3539151b","type":"browser","attached":true}}}
1651643570796 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":1,"result":{}}
1651643570825 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"method":"Target.attachToTarget","params":{"targetId":"27d2bccc-01c2-4477-a690-ab20247cbe30","flatten":true},"id":2}
1651643570826 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.attachedToTarget","params":{"targetInfo":{"targetId":"27d2bccc-01c2-4477-a690-ab20247cbe30","type":"page"," ... nk","attached":false,"browserContextId":null},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","waitingForDebugger":false}}
1651643570826 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":2,"result":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}}
1651643570834 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Page.enable","id":3}
1651643570841 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Page.getFrameTree","id":4}
1651643570841 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":false,"flatten":true},"id":5}
1651643570842 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":5,"result":{},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570842 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\":5,\"result\":{}}"}}
1651643570842 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Performance.enable","id":6}
1651643570842 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Log.enable","id":7}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":3,"result":{},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\":3,\"result\":{}}"}}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":4,"result":{"frameTree":{"frame":{"id":"25","url":"about:blank","securityOrigin":null,"mimeType":null}}},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\": ... ,\"result\":{\"frameTree\":{\"frame\":{\"id\":\"25\",\"url\":\"about:blank\",\"securityOrigin\":null,\"mimeType\":null}}}}"}}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":6,"result":{},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570853 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\":6,\"result\":{}}"}}
1651643570854 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":7,"result":{},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570854 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\":7,\"result\":{}}"}}
1651643570973 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Page.setLifecycleEventsEnabled","params":{"enabled":true},"id":8}
1651643570973 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Runtime.enable","id":9}
1651643570973 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a -> {"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","method":"Network.enable","id":10}
1651643570975 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"id":10,"result":{},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643570975 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"id\":10,\"result\":{}}"}}
1651643571117 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Network.requestWillBeSent","params":{"requestId":"47818018390018","documentURL":"http://localhost:8907/empty.html" ... nkPreload":false},"timestamp":1651643571.117,"type":"Img","frameId":"25"},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643571117 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"metho ... alive\"},\"hasPostData\":false,\"isLinkPreload\":false},\"timestamp\":1651643571.117,\"type\":\"Img\",\"frameId\":\"25\"}}"}}
1651643571136 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Network.responseReceived","params":{"requestId":"47818018390018","timestamp":1651643571.136,"type":"Img","response ... tp/1.1","securityDetails":null,"securityState":"unknown"},"frameId":"25"},"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4"}
1651643571136 CDP TRACE CDPConnection 314a8fcd-1c2d-4a69-b28e-104fd71c2b9a <- {"method":"Target.receivedMessageFromTarget","params":{"sessionId":"402ed7f7-2306-4161-9300-9d778a743ec4","message":"{\"metho ... omDiskCache\":false,\"protocol\":\"http/1.1\",\"securityDetails\":null,\"securityState\":\"unknown\"},\"frameId\":\"25\"}}"}}
console.error: BackgroundUpdate:
_reasonsToNotScheduleUpdates: Failed to check for Maintenance Service Registry Key: [Exception... "Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED) [nsIUpdateProcessor.getServiceRegKeyExists]" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame :: resource://gre/modules/BackgroundUpdate.jsm :: _reasonsToNotScheduleUpdates :: line 241" data: no]
!
0 passing (25s)
1 failing
1) Launcher specs
Puppeteer
Puppeteer.launch
should have custom URL when launching browser:
Error: Timeout of 25000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/alexrudenko/src/puppeteer/test/launcher.spec.ts)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment