Open charklewis opened 11 months ago
I have checked this with remix version 2.1.0
and the issue still persists.
Sounds like if Cypress is adding an extra meta tags to the DOM before React hydrates the app.
Is there any updates on this besides bypassing these errors on Cypress?
Tested with Remix 2.9.2
.
No, we switched to puppeteer which doesn't have this problem.
Similar here, I switched to playwright which doesn't have this problem either.
Kinda solution here: integrate with remix-island, and implement this patch https://github.com/remix-run/remix/issues/2570#issuecomment-1099696456
What version of Remix are you using?
2.0.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
npx create-remix
to create a remix appnpm install cypress --save-dev
)Sample repo with this setup - https://github.com/charklewis/my-remix-app
Expected Behavior
I should be able to run cypress without having hydration errors that stop the tests from completing.
Actual Behavior
There are two main errors the eventually cause any test to fail:
Expected server HTML to contain a matching <meta> in <head>
Hydration failed because the initial UI does not match what was rendered on the server
I have tested this by running Cypress with Chrome, Electron and Firefox and the issue persists across all of them.