test: fix connectOverCDP with proxy on Windows (#10092)

This commit is contained in:
Max Schmitt 2021-11-05 19:49:39 +01:00 committed by GitHub
parent 32630e825a
commit 9dbf225afc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}/`);