playwright/tests/library/chromium
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
..
oopif.spec.ts-snapshots chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
chromium.spec.ts chore: make connectOverCDP work with localhost (#20396) 2023-01-30 17:44:26 +01:00
css-coverage.spec.ts feat(chromium-tip-of-tree): roll to r1065 (#19239) 2022-12-05 11:22:03 -08:00
js-coverage.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00
launcher.spec.ts test: unflake launcher CR extensions test (#15064) 2022-06-23 09:36:33 +02:00
oopif.spec.ts test: enable ssim-cie94 image comparison algorithm for our tests (#19313) 2022-12-29 23:48:28 -08:00
session.spec.ts test: unflake "should work with newBrowserCDPSession" (#16765) 2022-08-23 10:25:28 -07:00
tracing.spec.ts chore: group tests under tests/ (1) (#13081) 2022-03-25 16:05:50 -07:00