From 068dc5c1947f320bbd88e6cea99e94ba25cf9fca Mon Sep 17 00:00:00 2001 From: Lane Campbell Date: Fri, 3 Oct 2025 17:56:26 -0700 Subject: [PATCH] fix: add timeout to logout helper for cookie clearing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 500ms timeout after logout to ensure cookies are properly cleared before subsequent authentication checks. Note: E2E tests have 27 failures that need investigation: - Logout authentication check (cookies not clearing properly) - Various timeout issues in collections, content, media, and plugin tests - These appear to be timing/flakiness issues that need deeper investigation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- tests/e2e/utils/test-helpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/utils/test-helpers.ts b/tests/e2e/utils/test-helpers.ts index 74d06c89..7d9b37fb 100644 --- a/tests/e2e/utils/test-helpers.ts +++ b/tests/e2e/utils/test-helpers.ts @@ -482,6 +482,8 @@ export async function isAuthenticated(page: Page): Promise { export async function logout(page: Page) { await page.goto('/auth/logout'); await page.waitForURL(/\/auth\/login/); + // Wait a moment for cookies to be cleared + await page.waitForTimeout(500); } /**