Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(run-server): do not engage socks when not requested (#21848)
Dmitry Gozman21e1c50bcd71
diff --git a/packages/playwright-core/src/remote/playwrightConnection.ts b/packages/playwright-core/src/remote/playwrightConnection.tsindex 3098b7aee4..2a664e99ba 100644--- a/packages/playwright-core/src/remote/playwrightConnection.ts+++ b/packages/playwright-core/src/remote/playwrightConnection.ts@@ -226,6 +226,8 @@ export class PlaywrightConnection {}private async _createOwnedSocksProxy(playwright: Playwright): Promise<SocksProxy | undefined> {+ if (!this._options.socksProxyPattern)+ return;const socksProxy = new SocksProxy();socksProxy.setPattern(this._options.socksProxyPattern);playwright.options.socksProxyPort = await socksProxy.listen(0);