Skip to content

Commit

Permalink
Deplyment Issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed May 7, 2024
1 parent 058c83a commit a394348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ Cypress.on("uncaught:exception", (err, runnable) => {
}

if (
err.message.includes("Text content does not match server-rendered HTML.")
err.message.includes("Text content does not match server-rendered HTML")
) {
// Return false to prevent Cypress from failing the test
return false;
}

if (
err.message.includes(
"There was an error while hydrating this Suspense boundary. Switched to client rendering."
"There was an error while hydrating this Suspense boundary. Switched to client rendering"
)
) {
// Return false to prevent Cypress from failing the test
return false;
}

// Return true to let Cypress handle other uncaught exceptions normally
return true;
return false;
});

0 comments on commit a394348

Please sign in to comment.