Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: fix Windows Socks tests (#31654)

Max Schmitt97e2aa07a55c
diff --git a/tests/config/serverFixtures.ts b/tests/config/serverFixtures.ts
index 009158545c..a156f2ac5f 100644
--- a/tests/config/serverFixtures.ts
+++ b/tests/config/serverFixtures.ts
@@ -108,6 +108,8 @@ export class MockSocksServer {
host: '127.0.0.1',
port: 0,
});
+ });
+ this._socksProxy.addListener(SocksProxy.Events.SocksData, async (payload: SocksSocketRequestedPayload) => {
const body = '<html><title>Served by the SOCKS proxy</title></html>';
const data = Buffer.from([
'HTTP/1.1 200 OK',