test(e2e): ignore flaky Clerk hydration mismatch on /sign-in

This commit is contained in:
Abhimanyu Saharan
2026-02-12 11:31:48 +00:00
parent 70530dadd5
commit eb3dbfa50b

View File

@@ -1,5 +1,14 @@
/// <reference types="cypress" />
// 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";