Skip to content

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

chore(mcp): speculative cdp test fix (#37570)

Pavel Feldmanef9ce5872321
diff --git a/tests/mcp/fixtures.ts b/tests/mcp/fixtures.ts
index 92ab0dd34d..99aeac6203 100644
--- a/tests/mcp/fixtures.ts
+++ b/tests/mcp/fixtures.ts
@@ -141,7 +141,7 @@ export const test = serverTest.extend<TestFixtures & TestOptions, WorkerFixtures
test.skip(!['chrome', 'msedge', 'chromium'].includes(mcpBrowser!), 'CDP is not supported for non-Chromium browsers');
let browserContext: BrowserContext | undefined;
- const port = 3200 + test.info().parallelIndex;
+ const port = 9100 + testInfo.workerIndex;
await use({
endpoint: `http://localhost:${port}`,
start: async () => {