2026-02-07 16:01:13 +00:00
|
|
|
// Cypress support file.
|
|
|
|
|
// Place global hooks/commands here.
|
2026-02-07 17:33:52 +00:00
|
|
|
|
2026-02-08 15:06:06 +00:00
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
|
|
|
|
|
import { addClerkCommands } from "@clerk/testing/cypress";
|
|
|
|
|
|
2026-02-25 01:39:04 +05:30
|
|
|
// 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;
|
|
|
|
|
});
|
|
|
|
|
|
2026-02-08 15:06:06 +00:00
|
|
|
addClerkCommands({ Cypress, cy });
|
|
|
|
|
|
2026-02-07 17:33:52 +00:00
|
|
|
import "./commands";
|