-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove regex-based JS/HTML rewriting, switch to AST-based rewriting #7297
Comments
I am using expermentalSourceRewriting in 4.7.0 and getting the error
Is this a known issue and is there a workaround? This causes our tests to fail in CI even when we have a fully passing suite. |
@drumbeg Does it happen while exiting the tests? If so, that is a known bug, caused by some issue in Electron: electron/electron#23366 Cypress uses a workaround, but it seems to be failing in your case. Does it fail every time? If it happens before the end of the test suite, that's a new bug, in which case please open a new issue and tag me there to track it. Either way, debug logs would be helpful from your test run. You can enable debug logs w/ environment variables:
Make sure to scrub any private data from the logs before sharing here. |
It only happens when exiting the tests and crucially it only happens when running within a custom built Docker container based on Oracle Linux 7 (based on RHEL). I get the failure every time, again, only at the end of the suite. I'm having other issues when trying to attach the debugger. Is there anything I should be wary of when running in Docker using an image based on RHEL? |
Not to my knowledge. |
@drumbeg yeah, just merged that PR; it may fix the issue for you once released |
4.8.0 looking good 👍 |
AST-based JS/HTML rewriting is available as an experimental feature with #5273
Here are the remaining tasks before it can fully replace the existing regex-based rewriting:
resolvers.ts
resolvers.ts
parse5
instead of regex.window.Cypress.resolveWindowReference
into every html page here:cypress/packages/server/lib/util/inject.js
Lines 1 to 28 in 2ed5694
process.exit
withworker_threads
active electron/electron#23366The text was updated successfully, but these errors were encountered: