feat: add groupSnapshot alias and handle hydration mismatch in E2E tests

This commit is contained in:
Abhimanyu Saharan
2026-02-25 01:39:04 +05:30
parent c6dedc93b3
commit 1045267d4c
2 changed files with 11 additions and 1 deletions

View File

@@ -5,6 +5,15 @@
import { addClerkCommands } from "@clerk/testing/cypress";
// Clerk/Next.js occasionally throws a non-deterministic hydration mismatch
// on /sign-in. Ignore this known UI noise so E2E assertions can proceed.
Cypress.on("uncaught:exception", (err) => {
if (err?.message?.includes("Hydration failed")) {
return false;
}
return true;
});
addClerkCommands({ Cypress, cy });
import "./commands";