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
Potentially catch global onunhandledrejection
as errors?
#243
Comments
onunhandledrejection
as errorsonunhandledrejection
as errors?
It would be nice to turn off the Cypress global exception handler per test. cy.window()
.then(win => {
function raise () {
throw new Error(`E2E test error`)
}
win.setTimeout(raise, 100)
})
.wait('@error') The route is working, but the Cypress own crash handler thinks this error was unhandled and fails the test. If we could turn the Cypress crash handler just for this test, it would make a lot of sense. |
ref #254 |
Any progress? |
The code for this is done in cypress-io/cypress#14826, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Currently Cypress taps into
window.onerror
for failing tests which have script errors.But we don't tap into
onunhandledrejection
events. I believe we should, but enable this to be configurable.API Idea:
The text was updated successfully, but these errors were encountered: