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
+6 -6
View File
@@ -92,10 +92,10 @@ test.describe.serial('Epic 1: User Logout', () => {
test('Logout button appears in navigation when logged in', async ({ page }) => {
// Login first
await page.goto('http://localhost:3000/auth/login');
await page.goto('http://localhost:3000/auth/login');
// Wait for JavaScript to be ready
await page.waitForLoadState('networkidle');
// Wait for page to load
await page.waitForLoadState('domcontentloaded');
await page.waitForSelector('form');
await page.waitForSelector('button[type="submit"]:not([disabled])');
@@ -129,7 +129,7 @@ test.describe.serial('Epic 1: User Logout', () => {
// Navigate to home page to check navigation (session should persist)
// Use reload to ensure session is read from cookies
await page.reload();
await page.waitForLoadState('networkidle');
await page.waitForLoadState('domcontentloaded');
// Wait a moment for the navigation component to update
await page.waitForTimeout(1000);
@@ -166,7 +166,7 @@ test.describe.serial('Epic 1: User Logout', () => {
// Navigate to home using reload to ensure session is loaded
await page.reload();
await page.waitForLoadState('networkidle');
await page.waitForLoadState('domcontentloaded');
// Wait for logout button to appear
await page.waitForSelector('text=Sign out', { timeout: 10000 });
@@ -190,7 +190,7 @@ test.describe.serial('Epic 1: User Logout', () => {
// Navigate to home using reload to ensure session is loaded
await page.reload();
await page.waitForLoadState('networkidle');
await page.waitForLoadState('domcontentloaded');
// Wait for logout button to appear
await page.waitForSelector('text=Sign out', { timeout: 10000 });