From 2fea0612b592416ecff66c76916a0e16f443ba87 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Fri, 26 Dec 2025 12:34:05 +0100 Subject: [PATCH] use domcontentloaded for accessibility snapshot tests --- playwriter/src/mcp.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwriter/src/mcp.test.ts b/playwriter/src/mcp.test.ts index 1317b01..a60913d 100644 --- a/playwriter/src/mcp.test.ts +++ b/playwriter/src/mcp.test.ts @@ -292,7 +292,7 @@ describe('MCP Server Tests', () => { name: 'execute', arguments: { code: js` - await state.page.goto('https://news.ycombinator.com/item?id=1', { waitUntil: 'networkidle' }); + await state.page.goto('https://news.ycombinator.com/item?id=1', { waitUntil: 'domcontentloaded' }); const snapshot = await state.page._snapshotForAI(); return snapshot; `, @@ -328,7 +328,7 @@ describe('MCP Server Tests', () => { name: 'execute', arguments: { code: js` - await state.page.goto('https://ui.shadcn.com/', { waitUntil: 'networkidle' }); + await state.page.goto('https://ui.shadcn.com/', { waitUntil: 'domcontentloaded' }); const snapshot = await state.page._snapshotForAI(); return snapshot; `,