Skip to content

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

test(mcp): fix flaky dashboard -s activation test on firefox (#42049)

microsoft-playwright-automation[bot]1e6a5e630db8
diff --git a/tests/mcp/dashboard.spec.ts b/tests/mcp/dashboard.spec.ts
index 4437988873..3f4ae73679 100644
--- a/tests/mcp/dashboard.spec.ts
+++ b/tests/mcp/dashboard.spec.ts
@@ -110,7 +110,7 @@ test('should activate session when show is called with -s', async ({ cli, server
await cli('-s=sessB', 'open', server.EMPTY_PAGE);
const dashboard = await startDashboardServer({ session: 'sessB' });
- await expect(activeSession(dashboard)).toHaveAccessibleName('Session sessB');
+ await expect(activeSession(dashboard)).toHaveAccessibleName('Session sessB', { timeout: 30000 });
});
function isAlive(pid: number): boolean {