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 connecting 20 times on non-linux (#23239)

Dmitry Gozmanb1db4a81917f
diff --git a/tests/library/browsertype-connect.spec.ts b/tests/library/browsertype-connect.spec.ts
index e9577cde29..40a1dc8805 100644
--- a/tests/library/browsertype-connect.spec.ts
+++ b/tests/library/browsertype-connect.spec.ts
@@ -457,7 +457,9 @@ for (const kind of ['launchServer', 'run-server'] as const) {
expect(error.message).toContain('Path is not available when connecting remotely. Use saveAs() to save a local copy.');
});
- test('should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer }) => {
+ test('should be able to connect 20 times to a single server without warnings', async ({ connect, startRemoteServer, platform }) => {
+ test.skip(platform !== 'linux', 'Testing non-platform specific code');
+
const remoteServer = await startRemoteServer(kind);
let warning = null;