use domcontentloaded for accessibility snapshot tests

This commit is contained in:
Tommy D. Rossi
2025-12-26 12:34:05 +01:00
parent 587f90bf6d
commit 2fea0612b5
+2 -2
View File
@@ -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;
`,