Skip to content

Re-enable React hydration error handling after Cypress fixes issue #27204 #2002

@mirhamasala

Description

@mirhamasala

Description

Cypress tests currently suppress React hydration errors as a workaround for a known Cypress issue. This should be revisited once the issue is resolved.

Code Location

packages/cypress/src/support/index.ts:8-9

Code Block

// Suppress React hydration errors in Cypress tests
// TODO: Revisit when Cypress fixes this known issue: https://github.com/cypress-io/cypress/issues/27204
Cypress.on('uncaught:exception', (err) => {
  if (
    err.message.includes('Hydration failed') ||
    err.message.includes('Minified React error #418') ||
    err.message.includes('Minified React error #423') ||
    err.message.includes('Unknown root exit status')
  ) {
    return false
  }
  return true
})

References

Tasks

  • Monitor the upstream Cypress issue
  • Remove or update the workaround once the issue is fixed
  • Update tests as needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions