playwright/tests/library
Dmitry Gozman fea8772d95
fix: emit load/domcontentloaded events as reported by the browser (#16861)
Instead of requiring all frames in the subtree to receive a particular
event, we rely on the browser's definition of load and DOMContentLoaded.

This changes logic in a few edge cases:
- Some browsers do not emit load event upon window.stop() at all.
- DOMContentLoaded does not wait for subframes, so they might not be
  ready when passing `{ waitUntil: 'domcontentloaded' }`.

`networkidle` preserves the old logic.
2022-08-26 13:48:05 -07:00
..
chromium test: unflake "should work with newBrowserCDPSession" (#16765) 2022-08-23 10:25:28 -07:00
emulation-focus.spec.ts-snapshots feat(webkit): roll to r1674 (#15384) 2022-07-08 11:07:06 -07:00
firefox chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
inspector feat(codegen): add NUnit/MSTest (#16803) 2022-08-25 11:58:58 +02:00
screenshot.spec.ts-snapshots feat(webkit): roll to r1674 (#15384) 2022-07-08 11:07:06 -07:00
beforeunload.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browser.spec.ts feat(browser): add Browser.BrowserType() method (#14468) 2022-06-06 09:46:08 -07:00
browsercontext-add-cookies.spec.ts feat(firefox): roll Firefox stable to 103 (#16224) 2022-08-03 16:55:19 -07:00
browsercontext-add-init-script.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-base-url.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-basic.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-clearcookies.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-cookies.spec.ts feat(chromium-tip-of-tree): roll to r1016 (#14912) 2022-06-16 19:36:37 +02:00
browsercontext-credentials.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-csp.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-device.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-dsf.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
browsercontext-expose-function.spec.ts chore: migrate component testing to server-side page reuse (#15477) 2022-07-12 14:30:24 -07:00
browsercontext-fetch.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
browsercontext-har.spec.ts test: unskip working Android tests (#16171) 2022-08-02 22:51:10 +02:00
browsercontext-locale.spec.ts feat(webkit): roll to r1658 (#14709) 2022-06-08 10:16:49 -07:00
browsercontext-network-event.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-page-event.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
browsercontext-pages.spec.ts feat(webkit): roll to r1703 (#16604) 2022-08-17 17:13:00 -07:00
browsercontext-proxy.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-route.spec.ts fix(route): match against updated url while chaining (#15112) 2022-06-24 10:48:16 -07:00
browsercontext-service-worker-policy.spec.ts feat: add allow/block serviceWorkers option (#14714) 2022-06-08 18:27:51 -04:00
browsercontext-set-extra-http-headers.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-storage-state.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-strict.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-timezone-id.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-user-agent.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-viewport-mobile.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsercontext-viewport.spec.ts tests(fixit): garden win/webkit/input tests (#14721) 2022-06-08 14:13:39 -08:00
browsertype-basic.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsertype-connect.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
browsertype-launch-selenium.spec.ts chore: make tests pass on Node.js 17+ (#13678) 2022-04-22 13:42:52 +02:00
browsertype-launch-server.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
browsertype-launch.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
capabilities.spec.ts tests: mark certain tests as failing on Firefox Headed (#14286) 2022-05-19 09:06:31 -07:00
channels.spec.ts chore: make parent scope explicit (#16819) 2022-08-25 11:58:41 -07:00
component-parser.spec.ts chore: relax transpilation criteria to allow ems imports of .vue files (#15592) 2022-07-13 16:11:38 -07:00
css-parser.spec.ts chore: use utils via index export (6) (#13417) 2022-04-07 21:48:41 -07:00
defaultbrowsercontext-1.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
defaultbrowsercontext-2.spec.ts feat(webkit): add forced colors media query override (#16654) 2022-08-19 14:19:54 +02:00
download.spec.ts test: add test for PDF download per navigation (#16687) 2022-08-24 17:45:15 +02:00
downloads-path.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
emulation-focus.spec.ts chore: align more ESLint rules with VSCode formatting (#16647) 2022-08-18 20:12:33 +02:00
favicon.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
geolocation.spec.ts test: unflake a few tests (#15959) 2022-07-27 11:27:53 -07:00
global-fetch-cookie.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
global-fetch.spec.ts chore: add CI to default user agent (#15450) 2022-07-07 21:43:47 +02:00
har.spec.ts chore(default context): Apply context workaround only when browser and scenario match (#15904) 2022-07-27 12:23:22 -07:00
headful.spec.ts feat(firefox): roll Firefox stable to 103 (#16224) 2022-08-03 16:55:19 -07:00
hit-target.spec.ts test: increase small timeouts to accomodate two workers (#15257) 2022-06-30 09:05:39 -07:00
ignorehttpserrors.spec.ts fix: emit load/domcontentloaded events as reported by the browser (#16861) 2022-08-26 13:48:05 -07:00
launcher.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
logger.spec.ts chore: experimental resetForReuse (#15432) 2022-07-11 13:10:08 -07:00
modernizr.spec.ts test: update macos 12 test expectations (#16223) 2022-08-03 14:51:11 -07:00
pdf.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
permissions.spec.ts feat(chromium): roll to r1008 (#14448) 2022-05-30 15:04:05 +02:00
playwright.config.ts test: stress runners (#15078) 2022-06-23 15:55:12 -07:00
popup.spec.ts test: unskip viewport size test (#15268) 2022-06-30 15:58:11 +02:00
port-forwarding-server.spec.ts feat(reuse): retain different browser types when reusing (#16269) 2022-08-04 15:04:00 -07:00
proxy.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
resource-timing.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
role-utils.spec.ts test: split accname, fix select preventing context closure 2022-06-09 13:58:22 -07:00
screenshot.spec.ts chore: bundle core deps (#13621) 2022-04-18 20:20:49 -07:00
selector-generator.spec.ts fix(codegen): use name attribute for frame elements (#14609) 2022-06-02 21:14:01 -07:00
selectors-register.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
signals.spec.ts test: run "should remove temp dir on process.exit" on windows (#13568) 2022-04-14 16:07:03 -07:00
slowmo.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
snapshotter.spec.ts feat(innerloop): allow reusing browsers over the remote connection (#16065) 2022-07-31 14:31:17 -07:00
tap.spec.ts chore: always import type (#13365) 2022-04-06 14:57:14 -07:00
trace-viewer.spec.ts test: unflake a few tests (#15959) 2022-07-27 11:27:53 -07:00
tracing.spec.ts test: enhance tracing tests to cover edge cases (#15709) 2022-07-15 13:31:58 -07:00
video.spec.ts test: mark driver mode as remote (#15402) 2022-07-06 09:20:07 -07:00
web-socket.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00