{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/1811","repository_url":"https://api.github.com/repos/GoogleChrome/puppeteer","labels_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/1811/labels{/name}","comments_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/1811/comments","events_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/1811/events","html_url":"https://github.com/GoogleChrome/puppeteer/issues/1811","id":288899772,"node_id":"MDU6SXNzdWUyODg4OTk3NzI=","number":1811,"title":"page.waitForNavigation returns null when interceptors are enabled","user":{"login":"hasangilak","id":6544711,"node_id":"MDQ6VXNlcjY1NDQ3MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/6544711?v=4","gravatar_id":"","url":"https://api.github.com/users/hasangilak","html_url":"https://github.com/hasangilak","followers_url":"https://api.github.com/users/hasangilak/followers","following_url":"https://api.github.com/users/hasangilak/following{/other_user}","gists_url":"https://api.github.com/users/hasangilak/gists{/gist_id}","starred_url":"https://api.github.com/users/hasangilak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasangilak/subscriptions","organizations_url":"https://api.github.com/users/hasangilak/orgs","repos_url":"https://api.github.com/users/hasangilak/repos","events_url":"https://api.github.com/users/hasangilak/events{/privacy}","received_events_url":"https://api.github.com/users/hasangilak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-01-16T13:05:12Z","updated_at":"2018-05-31T09:42:33Z","closed_at":"2018-05-31T09:42:33Z","author_association":"NONE","body":"```\r\nimport puppeteer from \"puppeteer\";\r\nimport {pause, disableImage} from \"../../helpers\";\r\nimport parseUrl from \"parse-url\";\r\nimport env from './../../env';\r\n\r\nlet page;\r\nlet browser;\r\n\r\n\r\nbeforeAll(async () => {\r\n    browser = await puppeteer.launch({\r\n        slowMo: 80,\r\n        args: [\r\n            `--window-size=${env.width},${env.height}`,\r\n            ...env.args,\r\n        ]\r\n    });\r\n    page = await browser.newPage();\r\n    await page.setRequestInterception(true);\r\n    page.on('request', request => {\r\n        // add stylesheet, font\r\n        if (request.resourceType === 'image')\r\n            request.abort();\r\n        else\r\n            request.continue();\r\n    });\r\n    await page.setViewport({width: env.width, height: env.height});\r\n});\r\n\r\n\r\nafterAll(() => {\r\n    browser.close();\r\n});\r\n\r\n\r\ndescribe(\"failure-in-login\", () => {\r\n    test(\"should fail due to wrong user\", async () => {\r\n        await page.goto(env.host);\r\n        await page.waitForSelector('input#user');\r\n        await pause(100);\r\n        await page.type('input#user', 'admiin');\r\n        await page.type('input#password', env.admin.password);\r\n        const [response] = await Promise.all([\r\n            page.waitForNavigation(),\r\n            page.click('#submit')\r\n        ]);\r\n\r\n        expect(parseUrl(response.url).query.user).toEqual('admiin');\r\n    }, 10000 * env.time);\r\n});\r\n```\r\nI have an error on expect(parseUrl(response.url).query.user).toEqual('admiin'); caused by response variable to be null. and if I only remove interceptor things work just fine. "},"comment":{"url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/comments/393475838","html_url":"https://github.com/GoogleChrome/puppeteer/issues/1811#issuecomment-393475838","issue_url":"https://api.github.com/repos/GoogleChrome/puppeteer/issues/1811","id":393475838,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ3NTgzOA==","user":{"login":"aslushnikov","id":746130,"node_id":"MDQ6VXNlcjc0NjEzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/746130?v=4","gravatar_id":"","url":"https://api.github.com/users/aslushnikov","html_url":"https://github.com/aslushnikov","followers_url":"https://api.github.com/users/aslushnikov/followers","following_url":"https://api.github.com/users/aslushnikov/following{/other_user}","gists_url":"https://api.github.com/users/aslushnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aslushnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aslushnikov/subscriptions","organizations_url":"https://api.github.com/users/aslushnikov/orgs","repos_url":"https://api.github.com/users/aslushnikov/repos","events_url":"https://api.github.com/users/aslushnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aslushnikov/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T09:42:33Z","updated_at":"2018-05-31T09:42:33Z","author_association":"CONTRIBUTOR","body":"> is there any way to drastically reduce test time?\r\n\r\nNot a general one; you can try caching the page or disabling javascript though."}}
{"actor":{"display_login":"aslushnikov"}}