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 connectOverCDP with proxy on Windows (#10092)

Max Schmitt9dbf225afcee
diff --git a/tests/chromium/chromium.spec.ts b/tests/chromium/chromium.spec.ts
index 5d24b581d5..82990bc83d 100644
--- a/tests/chromium/chromium.spec.ts
+++ b/tests/chromium/chromium.spec.ts
@@ -425,7 +425,7 @@ playwrightTest('should use proxy with connectOverCDP', async ({ browserType, ser
});
const port = 9339 + testInfo.workerIndex;
const browserServer = await browserType.launch({
- args: ['--remote-debugging-port=' + port]
+ args: ['--remote-debugging-port=' + port, ...(process.platform === 'win32' ? ['--proxy-server=some-value'] : [])]
});
try {
const cdpBrowser = await browserType.connectOverCDP(`http://localhost:${port}/`);