playwright/tests/library
Max Schmitt 92eb8e5090
chore: make connectOverCDP work with localhost (#20396)
This wraps happy eyeballs in two places, the place where we make the
JSON request to Chromium and the actual CDP WebSocket request.

It required changes inside our happy eyeballs implementation since the
[websocket library does not
set](https://github.com/websockets/ws/blob/master/lib/websocket.js#L714)
the `clientRequestOptions.hostname` field, it just sets the `host` field
where we then fall back to when its not set.

This test would pass before Node.js 18 and fail after Node.js 18 without
my changes.

Fixes https://github.com/microsoft/playwright/issues/20364
2023-01-30 17:44:26 +01:00
..
chromium chore: make connectOverCDP work with localhost (#20396) 2023-01-30 17:44:26 +01: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 test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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 test: fix flaky cookie roundtrip test (#19459) 2022-12-14 15:24:54 -08: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 test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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 fix(reuse): workaround long sw unregister (#19930) 2023-01-06 17:02:40 -08:00
browsercontext-fetch-happy-eyeballs.spec.ts feat(fetch): happy eyeballs (#19902) 2023-01-05 14:39:49 -08:00
browsercontext-fetch.spec.ts chore: introduce defineConfig for easier JS typing (#20061) 2023-01-12 13:12:02 -08:00
browsercontext-har.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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 test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
browsercontext-reuse.spec.ts fix(reuse): workaround long sw unregister (#19930) 2023-01-06 17:02:40 -08:00
browsercontext-route.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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 fix: throw on tap when hasTouch=false (#20457) 2023-01-27 15:51:57 -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 test: do not create ipv6 server inside Docker (#20440) 2023-01-27 18:38:27 +01: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: handle unexpected ws response (#17714) 2022-09-29 14:04:19 -07:00
browsertype-launch.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
capabilities.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
channels.spec.ts test: fix video channel tests (#18807) 2022-11-14 22:20:00 -08: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
debug-controller.spec.ts Revert "chore: respect headless option when reusing browser (#19980)" (#20336) 2023-01-24 11:07:53 -08:00
defaultbrowsercontext-1.spec.ts chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
defaultbrowsercontext-2.spec.ts test: fix socks proxy test for wk mac (#20227) 2023-01-19 09:10:42 -08:00
download.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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: fix typos (#20473) 2023-01-30 09:53:28 +01:00
geolocation.spec.ts test: unflake a few tests (#15959) 2022-07-27 11:27:53 -07:00
global-fetch-cookie.spec.ts feat(fetch): happy eyeballs (#19902) 2023-01-05 14:39:49 -08:00
global-fetch.spec.ts fix(expect): poll/toPass should not wait over specified timeout (#20266) 2023-01-20 15:47:24 -08:00
har.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
headful.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
hit-target.spec.ts fix(hit target): account for iframes with padding (#19732) 2022-12-27 16:59:34 -08: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
locator-generator.spec.ts fix(generator): FilterOptions in java (#19741) 2022-12-28 09:13:06 -08:00
logger.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08: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-tip-of-tree): roll to r1080 (#20323) 2023-01-25 10:23:12 +01:00
playwright.config.ts test: enable ssim-cie94 image comparison algorithm for our tests (#19313) 2022-12-29 23:48:28 -08:00
popup.spec.ts test: unskip viewport size test (#15268) 2022-06-30 15:58:11 +02:00
proxy-pattern.spec.ts feat(socks): support pattern similar to proxy bypass rules (#19387) 2022-12-12 12:27:34 -08:00
proxy.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
resource-timing.spec.ts fix: ignore timing data when request served from memory cache (#17595) 2022-09-26 17:12:47 -07:00
role-utils.spec.ts fix(role): update allowsNameFromContent to closer align with blink/gecko (#19692) 2022-12-27 09:06:46 -08:00
screenshot.spec.ts chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
selector-generator.spec.ts fix(generator): penalize for the selector length (#19672) 2022-12-22 20:54:04 -08:00
selectors-register.spec.ts fix(selectors): allow custom engines in out-of-process (#17139) 2022-09-06 14:15:53 -07:00
shared-worker.spec.ts fix(chromium): detach from shared workers (#18976) 2022-11-22 15:20:42 -08:00
signals.spec.ts tests: run browserType.connect tests against launchServer and run-server (#19340) 2022-12-07 14:36:32 -08:00
slowmo.spec.ts chore: simplify slowmo implementation (#18990) 2022-11-22 11:06:45 -08: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: fix typos (#20473) 2023-01-30 09:53:28 +01:00
trace-viewer.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
tracing.spec.ts test: update stale test expectations (#20423) 2023-01-27 21:52:34 -08:00
video.spec.ts test: disable "should work with video+trace" on headed (#20299) 2023-01-23 15:26:05 -08:00
web-socket.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00