From eb3dbfa50b753ab04e37f8c1595f32df93c70861 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Thu, 12 Feb 2026 11:31:48 +0000 Subject: [PATCH] test(e2e): ignore flaky Clerk hydration mismatch on /sign-in --- frontend/cypress/e2e/activity_feed.cy.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/cypress/e2e/activity_feed.cy.ts b/frontend/cypress/e2e/activity_feed.cy.ts index 71cd6c51..b58ab4fc 100644 --- a/frontend/cypress/e2e/activity_feed.cy.ts +++ b/frontend/cypress/e2e/activity_feed.cy.ts @@ -1,5 +1,14 @@ /// +// Clerk/Next.js occasionally triggers a hydration mismatch on the SignIn route in CI. +// This is non-deterministic UI noise for these tests; ignore it so assertions can proceed. +Cypress.on("uncaught:exception", (err) => { + if (err.message?.includes("Hydration failed")) { + return false; + } + return true; +}); + describe("/activity feed", () => { const apiBase = "**/api/v1"; const email = Cypress.env("CLERK_TEST_EMAIL") || "jane+clerk_test@example.com";