puppeteer/test
Andrey Lushnikov 927d0f443b
feat(page): support waitUntil option for page.setContent (#3557)
This patch teaches `page.setContent` to await resources in
the new document.

**NOTE**: This patch changes behavior: currently, `page.setContent`
awaits the `"domcontentloaded"` event; with this patch, we can now await
other lifecycle events, and switched default to the `"load"` event.

The change is justified since current behavior made `page.setContent`
unusable for its main designated usecases, pushing our client
to use [dataURL workaround](https://github.com/GoogleChrome/puppeteer/issues/728#issuecomment-334301491).

Fixes #728
2018-11-20 15:32:46 -08:00
..
assets fix(clicking): handle negative area results in computeQuadArea (#3413) 2018-10-25 11:41:37 -07:00
fixtures fix(test): add missing test for making sure chrome is closed (#2109) 2018-03-07 09:01:43 +03:00
golden fix: set JPG background to white when omitBackground option is used (#3240) 2018-09-14 11:03:33 +01:00
accessibility.spec.js test(accessibility): Fix duplicated test (#3539) 2018-11-15 14:57:07 -08:00
browser.spec.js feat(launcher): add experimental "transport" option to pptr.connect (#3265) 2018-09-20 11:55:23 -07:00
browsercontext.spec.js feat: browser.waitForTarget (#3356) 2018-10-09 14:16:53 -07:00
CDPSession.spec.js test: refactor utils.waitForEvents into utils.waitEvent (#2336) 2018-04-09 15:46:05 -07:00
cookies.spec.js test(cookies): Remove duplicated test. (#3492) 2018-11-04 11:48:31 -08:00
coverage.spec.js fix(csscoverage): don't prematurely disable the CSS domain (#3418) 2018-10-16 16:55:17 -07:00
diffstyle.css Implement FrameManager 2017-06-21 14:11:52 -07:00
elementhandle.spec.js test: make sure zero-width screenshots don't hang (#3214) 2018-09-11 19:07:57 +01:00
frame.spec.js feat(frame): introduce Frame.goto and Frame.waitForNavigation (#3276) 2018-09-20 11:31:19 -07:00
golden-utils.js fix: set JPG background to white when omitBackground option is used (#3240) 2018-09-14 11:03:33 +01:00
headful.spec.js test: setup sandbox on linux (#3530) 2018-11-12 23:26:16 -08:00
ignorehttpserrors.spec.js feat(chromium): roll Chromium to r588429 (#3181) 2018-09-04 10:04:27 +01:00
input.spec.js fix(clicking): handle negative area results in computeQuadArea (#3413) 2018-10-25 11:41:37 -07:00
jshandle.spec.js test: flatten tests (#2337) 2018-04-09 16:38:00 -07:00
network.spec.js feat(network): introduce Response.statusText() (#3193) 2018-09-05 21:03:24 +01:00
page.spec.js feat(page): support waitUntil option for page.setContent (#3557) 2018-11-20 15:32:46 -08:00
puppeteer.spec.js test: setup sandbox on linux (#3530) 2018-11-12 23:26:16 -08:00
run_static_server.js chore(testserver): prepare test server (#3294) 2018-09-24 12:46:39 -07:00
target.spec.js feat: browser.waitForTarget (#3356) 2018-10-09 14:16:53 -07:00
test.js test: setup sandbox on linux (#3530) 2018-11-12 23:26:16 -08:00
tracing.spec.js feat(Tracing): return a buffer from tracing.stop (#2360) 2018-04-12 08:26:50 -07:00
utils.js feat(frame): introduce Frame.goto and Frame.waitForNavigation (#3276) 2018-09-20 11:31:19 -07:00
worker.spec.js test: fix workers test (#3527) 2018-11-09 18:44:53 -08:00