Created
August 10, 2020 17:41
-
-
Save aslushnikov/be5995f2ddf05b12af613be53cbb756d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > [email protected] ftest /Users/aslushnikov/prog/playwright | |
| > cross-env BROWSER=firefox jest "page-wait-for-navigation.spec.js" | |
| console.error | |
| Using executable at /Users/aslushnikov/firefox/obj-build-playwright/dist/Nightly.app/Contents/MacOS/firefox | |
| 73 | executablePath = process.env.WKPATH; | |
| 74 | if (executablePath) | |
| > 75 | console.error(`Using executable at ${executablePath}`); | |
| | ^ | |
| 76 | await test({ | |
| 77 | handleSIGINT: false, | |
| 78 | slowMo: valueFromEnv('SLOW_MO', 0), | |
| at Fixture.fn (harness/fixtures.js:75:15) | |
| at Fixture.setup (harness/fixturePool.js:46:35) | |
| at FixturePool.setupFixture (harness/fixturePool.js:89:19) | |
| at Fixture.setup (harness/fixturePool.js:34:23) | |
| at FixturePool.setupFixture (harness/fixturePool.js:89:5) | |
| at Fixture.setup (harness/fixturePool.js:34:7) | |
| at FixturePool.setupFixture (harness/fixturePool.js:89:5) | |
| at Fixture.setup (harness/fixturePool.js:34:7) | |
| at FixturePool.setupFixture (harness/fixturePool.js:89:5) | |
| at FixturePool.resolveParametersAndRun (harness/fixturePool.js:103:7) | |
| at Object.event.test.fn (jest/playwrightEnvironment.js:168:11) | |
| 2020-08-10T17:40:54.804Z pw:protocol SEND ► {"id":1,"method":"Browser.enable","params":{"attachToDefaultContext":false}} [] | |
| 2020-08-10T17:40:54.806Z pw:protocol SEND ► {"id":2,"method":"Browser.getInfo"} [] | |
| 2020-08-10T17:40:54.808Z pw:protocol ◀ RECV {"id":1} [] | |
| 2020-08-10T17:40:54.808Z pw:protocol ◀ RECV {"id":2,"result":{"version":"Firefox/79.0a1","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"}} [] | |
| 2020-08-10T17:40:54.809Z pw:protocol SEND ► {"id":3,"method":"Browser.createBrowserContext","params":{"removeOnDetach":true}} [] | |
| 2020-08-10T17:40:54.811Z pw:protocol ◀ RECV {"id":3,"result":{"browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a"}} [] | |
| 2020-08-10T17:40:54.812Z pw:protocol SEND ► {"id":4,"method":"Browser.setDownloadOptions","params":{"browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a","downloadOptions":{"behavior":"cancel","downloadsDir":"/var/folders/jh/4zbgy5rx4d7gkrrczcm8dyrm0000gn/T/playwright_downloads-QVABZK"}}} [] | |
| 2020-08-10T17:40:54.812Z pw:protocol SEND ► {"id":5,"method":"Browser.setDefaultViewport","params":{"browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a","viewport":{"viewportSize":{"width":1280,"height":720},"deviceScaleFactor":1}}} [] | |
| 2020-08-10T17:40:54.816Z pw:protocol ◀ RECV {"id":4} [] | |
| 2020-08-10T17:40:54.816Z pw:protocol ◀ RECV {"id":5} [] | |
| 2020-08-10T17:40:54.817Z pw:protocol SEND ► {"id":6,"method":"Browser.newPage","params":{"browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a"}} [] | |
| 2020-08-10T17:40:55.612Z pw:protocol ◀ RECV {"method":"Browser.attachedToTarget","params":{"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","targetInfo":{"targetId":"05a8aa52-3636-1d45-bc74-b410deddebf5","type":"page","browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a"}}} [] | |
| 2020-08-10T17:40:55.613Z pw:protocol SEND ► {"method":"Page.addScriptToEvaluateOnNewDocument","params":{"script":"","worldName":"__playwright_utility_world__"},"id":7,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.646Z pw:protocol ◀ RECV {"id":6,"result":{"targetId":"05a8aa52-3636-1d45-bc74-b410deddebf5"}} [] | |
| 2020-08-10T17:40:55.650Z pw:protocol ◀ RECV {"method":"Page.frameAttached","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.650Z pw:protocol ◀ RECV {"method":"Page.navigationCommitted","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","url":"about:blank","name":""},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.651Z pw:api navigated to "about:blank" [] | |
| 2020-08-10T17:40:55.651Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-1","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":""}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.727Z pw:protocol ◀ RECV {"method":"Page.navigationStarted","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","navigationId":"993bfb00-a494-8d4e-bf58-4039400a963f","url":"about:blank"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.731Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-2","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"__playwright_utility_world__"}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.731Z pw:protocol ◀ RECV {"id":7,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","result":{"scriptId":"7aeadd82-b59b-194a-88c1-7c66e221c7de"}} [] | |
| 2020-08-10T17:40:55.732Z pw:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":"id-1"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.732Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-3","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":""}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.733Z pw:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":"id-2"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.733Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-4","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"__playwright_utility_world__"}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.736Z pw:protocol ◀ RECV {"method":"Page.navigationCommitted","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","navigationId":"993bfb00-a494-8d4e-bf58-4039400a963f","url":"about:blank","name":""},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.737Z pw:api navigated to "about:blank" [] | |
| 2020-08-10T17:40:55.737Z pw:protocol ◀ RECV {"method":"Page.ready","params":{},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.743Z pw:api => page.goto started | |
| 2020-08-10T17:40:55.743Z pw:api navigating to "http://localhost:8907/frames/one-frame.html", waiting until "load" [] | |
| 2020-08-10T17:40:55.743Z pw:protocol SEND ► {"method":"Page.navigate","params":{"url":"http://localhost:8907/frames/one-frame.html","frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c"},"id":8,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.744Z pw:protocol ◀ RECV {"method":"Page.eventFired","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"DOMContentLoaded"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.744Z pw:protocol ◀ RECV {"method":"Page.eventFired","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"load"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.754Z pw:protocol ◀ RECV {"method":"Page.navigationStarted","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","navigationId":"36683315675137","url":"http://localhost:8907/frames/one-frame.html"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.768Z pw:protocol ◀ RECV {"id":8,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","result":{"navigationId":"36683315675137","navigationURL":"http://localhost:8907/frames/one-frame.html"}} [] | |
| 2020-08-10T17:40:55.849Z pw:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","url":"http://localhost:8907/frames/one-frame.html","isIntercepted":false,"requestId":"36683315675137","headers":[{"name":"Host","value":"localhost:8907"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Connection","value":"keep-alive"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Sec-Fetch-Dest","value":"document"},{"name":"Sec-Fetch-Mode","value":"navigate"},{"name":"Sec-Fetch-Site","value":"none"},{"name":"Sec-Fetch-User","value":"?1"}],"method":"GET","navigationId":"36683315675137","cause":"TYPE_DOCUMENT","internalCause":"TYPE_DOCUMENT"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.905Z pw:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"36683315675137","securityDetails":null,"fromCache":false,"headers":[{"name":"Cache-Control","value":"no-cache, no-store"},{"name":"Content-Type","value":"text/html; charset=utf-8"},{"name":"Date","value":"Mon, 10 Aug 2020 17:40:55 GMT"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"37"}],"remoteIPAddress":"::1","remotePort":8907,"status":200,"statusText":"OK"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.906Z pw:protocol ◀ RECV {"method":"Network.requestFinished","params":{"requestId":"36683315675137"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.978Z pw:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":"id-3"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.979Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-5","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":""}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.979Z pw:protocol ◀ RECV {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":"id-4"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:55.979Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-6","auxData":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"__playwright_utility_world__"}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.017Z pw:protocol ◀ RECV {"method":"Page.navigationCommitted","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","navigationId":"36683315675137","url":"http://localhost:8907/frames/one-frame.html","name":""},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.017Z pw:api navigated to "http://localhost:8907/frames/one-frame.html" [] | |
| 2020-08-10T17:40:56.020Z pw:protocol ◀ RECV {"method":"Page.frameAttached","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","parentFrameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.021Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-7","auxData":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","name":"__playwright_utility_world__"}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.021Z pw:protocol ◀ RECV {"method":"Runtime.executionContextCreated","params":{"executionContextId":"id-8","auxData":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","name":""}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.021Z pw:protocol ◀ RECV {"method":"Page.navigationStarted","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","navigationId":"36683315675138","url":"http://localhost:8907/frames/frame.html"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.032Z pw:protocol ◀ RECV {"method":"Page.eventFired","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"DOMContentLoaded"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.090Z pw:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","url":"http://localhost:8907/frames/frame.html","isIntercepted":false,"requestId":"36683315675138","headers":[{"name":"Host","value":"localhost:8907"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"},{"name":"Accept","value":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Referer","value":"http://localhost:8907/frames/one-frame.html"},{"name":"Connection","value":"keep-alive"},{"name":"Upgrade-Insecure-Requests","value":"1"},{"name":"Sec-Fetch-Dest","value":"iframe"},{"name":"Sec-Fetch-Mode","value":"navigate"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"Sec-Fetch-User","value":"?1"}],"method":"GET","navigationId":"36683315675138","cause":"TYPE_SUBDOCUMENT","internalCause":"TYPE_INTERNAL_IFRAME"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.097Z pw:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","url":"http://localhost:8907/favicon.ico","isIntercepted":false,"requestId":"36683315675139","headers":[{"name":"Host","value":"localhost:8907"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"},{"name":"Accept","value":"image/webp,*/*"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Connection","value":"keep-alive"},{"name":"Sec-Fetch-Dest","value":"image"},{"name":"Sec-Fetch-Mode","value":"no-cors"},{"name":"Sec-Fetch-Site","value":"same-origin"}],"method":"GET","cause":"TYPE_IMAGE","internalCause":"TYPE_INTERNAL_IMAGE_FAVICON"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.098Z pw:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"36683315675138","securityDetails":null,"fromCache":false,"headers":[{"name":"Cache-Control","value":"no-cache, no-store"},{"name":"Content-Type","value":"text/html; charset=utf-8"},{"name":"Date","value":"Mon, 10 Aug 2020 17:40:56 GMT"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"254"}],"remoteIPAddress":"::1","remotePort":8907,"status":200,"statusText":"OK"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.099Z pw:protocol ◀ RECV {"method":"Network.requestFinished","params":{"requestId":"36683315675138"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.099Z pw:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"36683315675139","securityDetails":null,"fromCache":false,"headers":[{"name":"Cache-Control","value":"no-cache, no-store"},{"name":"Date","value":"Mon, 10 Aug 2020 17:40:56 GMT"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"74"}],"remoteIPAddress":"::1","remotePort":8907,"status":404,"statusText":"Not Found"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.100Z pw:protocol ◀ RECV {"method":"Network.requestFinished","params":{"requestId":"36683315675139"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.109Z pw:protocol ◀ RECV {"method":"Page.navigationCommitted","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","navigationId":"36683315675138","url":"http://localhost:8907/frames/frame.html","name":""},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.110Z pw:api navigated to "http://localhost:8907/frames/frame.html" [] | |
| 2020-08-10T17:40:56.111Z pw:protocol SEND ► {"method":"Runtime.evaluate","params":{"expression":"new ((/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = \"./src/injected/utilityScript.ts\");\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./node_modules/webpack/buildin/global.js\":\n/*!***********************************!*\\\n !*** (webpack)/buildin/global.js ***!\n \\***********************************/\n/*! no static exports found */\n/***/ (function(module, exports) {\n\nvar g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n/***/ }),\n\n/***/ \"./src/common/utilityScriptSerializers.ts\":\n/*!************************************************!*\\\n !*** ./src/common/utilityScriptSerializers.ts ***!\n \\************************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.serializeAsCallArgument = exports.parseEvaluationResultValue = void 0;\nfunction isRegExp(obj) {\n return obj instanceof RegExp || Object.prototype.toString.call(obj) === '[object RegExp]';\n}\nfunction isDate(obj) {\n return obj instanceof Date || Object.prototype.toString.call(obj) === '[object Date]';\n}\nfunction isError(obj) {\n return obj instanceof Error || (obj && obj.__proto__ && obj.__proto__.name === 'Error');\n}\nfunction parseEvaluationResultValue(value, handles = []) {\n if (Object.is(value, undefined))\n return undefined;\n if (typeof value === 'object' && value) {\n if ('v' in value) {\n if (value.v === 'undefined')\n return undefined;\n if (value.v === 'null')\n return null;\n if (value.v === 'NaN')\n return NaN;\n if (value.v === 'Infinity')\n return Infinity;\n if (value.v === '-Infinity')\n return -Infinity;\n if (value.v === '-0')\n return -0;\n return undefined;\n }\n if ('d' in value)\n return new Date(value.d);\n if ('r' in value)\n return new RegExp(value.r.p, value.r.f);\n if ('a' in value)\n return value.a.map((a) => parseEvaluationResultValue(a, handles));\n if ('o' in value) {\n const result = {};\n for (const { k, v } of value.o)\n result[k] = parseEvaluationResultValue(v, handles);\n return result;\n }\n if ('h' in value)\n return handles[value.h];\n }\n return value;\n}\nexports.parseEvaluationResultValue = parseEvaluationResultValue;\nfunction serializeAsCallArgument(value, handleSerializer) {\n return serialize(value, handleSerializer, new Set());\n}\nexports.serializeAsCallArgument = serializeAsCallArgument;\nfunction serialize(value, handleSerializer, visited) {\n const result = handleSerializer(value);\n if ('fallThrough' in result)\n value = result.fallThrough;\n else\n return result;\n if (visited.has(value))\n throw new Error('Argument is a circular structure');\n if (typeof value === 'symbol')\n return { v: 'undefined' };\n if (Object.is(value, undefined))\n return { v: 'undefined' };\n if (Object.is(value, null))\n return { v: 'null' };\n if (Object.is(value, NaN))\n return { v: 'NaN' };\n if (Object.is(value, Infinity))\n return { v: 'Infinity' };\n if (Object.is(value, -Infinity))\n return { v: '-Infinity' };\n if (Object.is(value, -0))\n return { v: '-0' };\n if (typeof value === 'boolean')\n return value;\n if (typeof value === 'number')\n return value;\n if (typeof value === 'string')\n return value;\n if (isError(value)) {\n const error = value;\n if ('captureStackTrace' in global.Error) {\n // v8\n return error.stack || '';\n }\n return `${error.name}: ${error.message}\\n${error.stack}`;\n }\n if (isDate(value))\n return { d: value.toJSON() };\n if (isRegExp(value))\n return { r: { p: value.source, f: value.flags } };\n if (Array.isArray(value)) {\n const a = [];\n visited.add(value);\n for (let i = 0; i < value.length; ++i)\n a.push(serialize(value[i], handleSerializer, visited));\n visited.delete(value);\n return { a };\n }\n if (typeof value === 'object') {\n const o = [];\n visited.add(value);\n for (const name of Object.keys(value)) {\n let item;\n try {\n item = value[name];\n }\n catch (e) {\n continue; // native bindings will throw sometimes\n }\n if (name === 'toJSON' && typeof item === 'function')\n o.push({ k: name, v: { o: [] } });\n else\n o.push({ k: name, v: serialize(item, handleSerializer, visited) });\n }\n visited.delete(value);\n return { o };\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n/***/ }),\n\n/***/ \"./src/injected/utilityScript.ts\":\n/*!***************************************!*\\\n !*** ./src/injected/utilityScript.ts ***!\n \\***************************************/\n/*! no static exports found */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Copyright (c) Microsoft Corporation.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utilityScriptSerializers_1 = __webpack_require__(/*! ../common/utilityScriptSerializers */ \"./src/common/utilityScriptSerializers.ts\");\nclass UtilityScript {\n evaluate(returnByValue, expression) {\n const result = global.eval(expression);\n return returnByValue ? this._promiseAwareJsonValueNoThrow(result) : result;\n }\n callFunction(returnByValue, functionText, argCount, ...argsAndHandles) {\n const args = argsAndHandles.slice(0, argCount);\n const handles = argsAndHandles.slice(argCount);\n const parameters = args.map(a => utilityScriptSerializers_1.parseEvaluationResultValue(a, handles));\n const func = global.eval('(' + functionText + ')');\n const result = func(...parameters);\n return returnByValue ? this._promiseAwareJsonValueNoThrow(result) : result;\n }\n jsonValue(returnByValue, value) {\n // Special handling of undefined to work-around multi-step returnByValue handling in WebKit.\n if (Object.is(value, undefined))\n return undefined;\n return utilityScriptSerializers_1.serializeAsCallArgument(value, (value) => ({ fallThrough: value }));\n }\n _promiseAwareJsonValueNoThrow(value) {\n const safeJson = (value) => {\n try {\n return this.jsonValue(true, value);\n }\n catch (e) {\n return undefined;\n }\n };\n if (value && typeof value === 'object' && typeof value.then === 'function') {\n return (async () => {\n // By using async function we ensure that return value is a native Promise,\n // and not some overriden Promise in the page.\n // This makes Firefox and WebKit debugging protocols recognize it as a Promise,\n // properly await and return the value.\n const promiseValue = await value;\n return safeJson(promiseValue);\n })();\n }\n return safeJson(value);\n }\n}\nexports.default = UtilityScript;\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n/***/ })\n\n/******/ })).default)()\n//# sourceURL=__playwright_evaluation_script__0\n","returnByValue":false,"executionContextId":"id-8"},"id":9,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.123Z pw:protocol ◀ RECV {"id":9,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","result":{"result":{"objectId":"id-9","type":"object"}}} [] | |
| 2020-08-10T17:40:56.124Z pw:protocol SEND ► {"method":"Runtime.callFunction","params":{"functionDeclaration":"(utilityScript, ...args) => utilityScript.callFunction(...args)\n//# sourceURL=__playwright_evaluation_script__2\n","args":[{"objectId":"id-9"},{"value":true},{"value":"() => window.stop()\n//# sourceURL=__playwright_evaluation_script__1\n"},{"value":1},{"value":{"v":"undefined"}}],"returnByValue":true,"executionContextId":"id-8"},"id":10,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.126Z pw:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","url":"http://localhost:8907/frames/style.css","isIntercepted":false,"requestId":"36683315675140","headers":[{"name":"Host","value":"localhost:8907"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"},{"name":"Accept","value":"text/css,*/*;q=0.1"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Referer","value":"http://localhost:8907/frames/frame.html"},{"name":"Connection","value":"keep-alive"},{"name":"Sec-Fetch-Dest","value":"style"},{"name":"Sec-Fetch-Mode","value":"no-cors"},{"name":"Sec-Fetch-Site","value":"same-origin"}],"method":"GET","cause":"TYPE_STYLESHEET","internalCause":"TYPE_INTERNAL_STYLESHEET_PRELOAD"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.126Z pw:protocol ◀ RECV {"method":"Network.requestWillBeSent","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","url":"http://localhost:8907/frames/script.js","isIntercepted":false,"requestId":"36683315675141","headers":[{"name":"Host","value":"localhost:8907"},{"name":"User-Agent","value":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0"},{"name":"Accept","value":"*/*"},{"name":"Accept-Language","value":"en-US,en;q=0.5"},{"name":"Accept-Encoding","value":"gzip, deflate"},{"name":"Referer","value":"http://localhost:8907/frames/frame.html"},{"name":"Connection","value":"keep-alive"},{"name":"Sec-Fetch-Dest","value":"script"},{"name":"Sec-Fetch-Mode","value":"no-cors"},{"name":"Sec-Fetch-Site","value":"same-origin"}],"method":"GET","cause":"TYPE_SCRIPT","internalCause":"TYPE_INTERNAL_SCRIPT_PRELOAD"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.131Z pw:protocol ◀ RECV {"method":"Network.responseReceived","params":{"requestId":"36683315675141","securityDetails":null,"fromCache":false,"headers":[{"name":"Cache-Control","value":"no-cache, no-store"},{"name":"Content-Type","value":"application/javascript; charset=utf-8"},{"name":"Date","value":"Mon, 10 Aug 2020 17:40:56 GMT"},{"name":"Connection","value":"keep-alive"},{"name":"Content-Length","value":"24"}],"remoteIPAddress":"::1","remotePort":8907,"status":200,"statusText":"OK"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.131Z pw:protocol ◀ RECV {"method":"Network.requestFinished","params":{"requestId":"36683315675141"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.136Z pw:protocol ◀ RECV {"method":"Page.eventFired","params":{"frameId":"18fa56ec-2e0b-3a45-9b39-7089458c679c","name":"load"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.137Z pw:protocol ◀ RECV {"id":10,"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","result":{"result":{}}} [] | |
| 2020-08-10T17:40:56.137Z pw:protocol ◀ RECV {"method":"Page.eventFired","params":{"frameId":"4dcd341b-606f-7a46-9daf-a3c1a451e304","name":"DOMContentLoaded"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.137Z pw:api "domcontentloaded" event fired [] | |
| 2020-08-10T17:40:56.138Z pw:protocol ◀ RECV {"method":"Runtime.console","params":{"args":[{"value":"[JavaScript Warning: \"Loading failed for the <script> with source “http://localhost:8907/frames/script.js”.\" {file: \"http://localhost:8907/frames/frame.html\" line: 2}]"}],"type":"warn","executionContextId":"id-8","location":{"lineNumber":2,"columnNumber":1,"url":"http://localhost:8907/frames/frame.html"}},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.139Z pw:protocol ◀ RECV {"method":"Network.requestFailed","params":{"requestId":"36683315675140","errorCode":"NS_BINDING_ABORTED"},"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80"} [] | |
| 2020-08-10T17:40:56.644Z pw:api "networkidle" event fired [] | |
| 2020-08-10T17:41:03.822Z pw:protocol SEND ► {"id":11,"method":"Browser.removeBrowserContext","params":{"browserContextId":"0200febc-0362-4e4d-82f9-131fb0dcf46a"}} [] | |
| 2020-08-10T17:41:03.833Z pw:protocol ◀ RECV {"method":"Browser.detachedFromTarget","params":{"sessionId":"77356623-11fc-a74c-b0f5-7ebc43cdec80","targetId":"05a8aa52-3636-1d45-bc74-b410deddebf5"}} [] | |
| 2020-08-10T17:41:03.868Z pw:api <= page.goto failed | |
| 2020-08-10T17:41:03.890Z pw:protocol ◀ RECV {"id":11} [] | |
| 2020-08-10T17:41:03.908Z pw:protocol ◀ RECV {"id":-9999} [] | |
| FAIL test/page-wait-for-navigation.spec.js | |
| ✕ should work when subframe issues window.stop() (10630 ms) | |
| ○ skipped should work | |
| ○ skipped should respect timeout | |
| ○ skipped should work with both domcontentloaded and load | |
| ○ skipped should work with clicking on anchor links | |
| ○ skipped should work with clicking on links which do not commit navigation | |
| ○ skipped should work with history.pushState() | |
| ○ skipped should work with history.replaceState() | |
| ○ skipped should work with DOM history.back()/history.forward() | |
| ○ skipped should work with url match | |
| ○ skipped should work with url match for same document navigations | |
| ○ skipped should work for cross-process navigations | |
| ○ skipped should work on frame | |
| ○ skipped should fail when frame detaches | |
| ● should work when subframe issues window.stop() | |
| thrown: "Exceeded timeout of 10000 ms for a test. | |
| Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." | |
| 142 | }); | |
| 143 | | |
| > 144 | fit('should work when subframe issues window.stop()', async({page, server}) => { | |
| | ^ | |
| 145 | server.setRoute('/frames/style.css', (req, res) => {}); | |
| 146 | const navigationPromise = page.goto(server.PREFIX + '/frames/one-frame.html'); | |
| 147 | const frame = await new Promise(f => page.once('frameattached', f)); | |
| at Object.<anonymous> (page-wait-for-navigation.spec.js:144:1) | |
| Test Suites: 1 failed, 1 total | |
| Tests: 1 failed, 13 skipped, 14 total | |
| Snapshots: 0 total | |
| Time: 11.235 s, estimated 12 s | |
| Ran all test suites matching /page-wait-for-navigation.spec.js/i. | |
| npm ERR! code ELIFECYCLE | |
| npm ERR! errno 1 | |
| npm ERR! [email protected] ftest: `cross-env BROWSER=firefox jest "page-wait-for-navigation.spec.js"` | |
| npm ERR! Exit status 1 | |
| npm ERR! | |
| npm ERR! Failed at the [email protected] ftest script. | |
| npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
| npm ERR! A complete log of this run can be found in: | |
| npm ERR! /Users/aslushnikov/.npm/_logs/2020-08-10T17_41_04_592Z-debug.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment