Skip to content

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

test: skip newly added client-cert test on service mode (#36831)

Max Schmittbcb5e67d5aeb
diff --git a/tests/library/client-certificates.spec.ts b/tests/library/client-certificates.spec.ts
index a3ebbb83a2..61b6580e86 100644
--- a/tests/library/client-certificates.spec.ts
+++ b/tests/library/client-certificates.spec.ts
@@ -371,7 +371,8 @@ test.describe('browser', () => {
await page.close();
});
- test('should pass with matching certificates and when a http proxy is used from env', async ({ browser, startCCServer, asset, browserName, proxyServer, isMac }) => {
+ test('should pass with matching certificates and when a http proxy is used from env', async ({ mode, browser, startCCServer, asset, browserName, proxyServer, isMac }) => {
+ test.skip(mode !== 'default', 'Out of process transport does not allow us to set env vars dynamically');
process.env.HTTPS_PROXY = `http://localhost:${proxyServer.PORT}`;
const serverURL = await startCCServer({ useFakeLocalhost: browserName === 'webkit' && isMac });
proxyServer.forwardTo(parseInt(new URL(serverURL).port, 10), { allowConnectRequests: true });