fix: replace waitForLoadState('networkidle') with domcontentloaded in all E2E tests
Release / release (push) Failing after 10s

This commit is contained in:
2026-04-26 19:13:38 -07:00
parent bb6be245b7
commit 470e6a03e3
8 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ export default async function globalSetup(config: FullConfig) {
// Navigate to admin page to refresh session
console.log('Navigating to admin page for admin user...');
await page.goto(`${baseURL}/admin`);
await page.waitForLoadState('networkidle');
await page.waitForLoadState('domcontentloaded');
console.log('Admin page loaded:', page.url());
// Wait a bit to ensure session is refreshed
@@ -181,7 +181,7 @@ export default async function globalSetup(config: FullConfig) {
// Refresh the page to force session reload
await page.reload();
await page.waitForLoadState('networkidle');
await page.waitForLoadState('domcontentloaded');
console.log('Page reloaded');
// Save the authentication state