Skip to content

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

test: unskip service tests (#28170)

Max Schmittee1e6cd72f86
diff --git a/tests/config/browserTest.ts b/tests/config/browserTest.ts
index cab7e6f285..02555d42eb 100644
--- a/tests/config/browserTest.ts
+++ b/tests/config/browserTest.ts
@@ -54,7 +54,7 @@ const test = baseTest.extend<BrowserTestTestFixtures, BrowserTestWorkerFixtures>
}, { scope: 'worker' }],
browserType: [async ({ playwright, browserName, mode }, run) => {
- test.skip(mode.startsWith('service'));
+ test.skip(mode === 'service2');
await run(playwright[browserName]);
}, { scope: 'worker' }],
diff --git a/tests/library/chromium/connect-over-cdp.spec.ts b/tests/library/chromium/connect-over-cdp.spec.ts
index a5d52c5e57..570460fe04 100644
--- a/tests/library/chromium/connect-over-cdp.spec.ts
+++ b/tests/library/chromium/connect-over-cdp.spec.ts
@@ -21,7 +21,7 @@ import fs from 'fs';
import { getUserAgent } from '../../../packages/playwright-core/lib/utils/userAgent';
import { suppressCertificateWarning } from '../../config/utils';
-test.skip(({ mode }) => mode.startsWith('service'));
+test.skip(({ mode }) => mode === 'service2');
test('should connect to an existing cdp session', async ({ browserType, mode }, testInfo) => {
const port = 9339 + testInfo.workerIndex;