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 wss/https tests which were failing on transport mode (#8733)

Max Schmitte832038ea21a
diff --git a/tests/browsertype-connect.spec.ts b/tests/browsertype-connect.spec.ts
index 04acbdd202..66b3eebb81 100644
--- a/tests/browsertype-connect.spec.ts
+++ b/tests/browsertype-connect.spec.ts
@@ -23,7 +23,8 @@ import WebSocket from 'ws';
test.slow(true, 'All connect tests are slow');
-test('should connect over wss', async ({browserType , startRemoteServer, httpsServer}) => {
+test('should connect over wss', async ({browserType , startRemoteServer, httpsServer, mode}) => {
+ test.skip(mode !== 'default'); // Out of process transport does not allow us to set env vars dynamically.
const remoteServer = await startRemoteServer();
const oldValue = process.env['NODE_TLS_REJECT_UNAUTHORIZED'];
diff --git a/tests/chromium/chromium.spec.ts b/tests/chromium/chromium.spec.ts
index e6fd8ac594..351b07071a 100644
--- a/tests/chromium/chromium.spec.ts
+++ b/tests/chromium/chromium.spec.ts
@@ -286,7 +286,8 @@ playwrightTest('should report all pages in an existing browser', async ({ browse
}
});
-playwrightTest('should connect via https', async ({ browserType, browserOptions, httpsServer }, testInfo) => {
+playwrightTest('should connect via https', async ({ browserType, browserOptions, httpsServer, mode }, testInfo) => {
+ test.skip(mode !== 'default'); // Out of process transport does not allow us to set env vars dynamically.
const port = 9339 + testInfo.workerIndex;
const browserServer = await browserType.launch({
...browserOptions,