-
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
Tests fail because of exception in console #1565
Comments
You can turn these off, as detailed here: https://on.cypress.io/catalog-of-events#Uncaught-Exceptions |
@jennifer-shehane Doesn't help/ I have the same errors with exact code from example in support/index.js |
This should definitely work if the error is originating from your application. Could you provide more details about the
|
@Gennadiii this is one of the most tested features of Cypress. We have dozens of tests around these scenarios. Until you provide a reproducible repo we will close all issues. There can always be edge cases that we haven't considered, but the documentation and our tests are accurate from what we've covered. Until we understand and even identify and prove that this is happening there isn't anything for our team to do. We need a minimally reproducible repo. Alternatively, our team offers paid support where we will screenshare with you to help diagnose and fix the issue. |
Also here is a much longer comment I've made before about this exact issue: #1385 (comment) |
I am also getting same issue, I have tried Cypress.on('uncaught:exception', (err, runnable) => { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
Please refer to this issue, which details why this happens and a PR for the fix. #987 We will be closing this issue to comments. |
Is this a Feature or Bug?
This is a bug
Current behavior:
I have exception on my app, I can see it in console: Uncaught TypeError: Cannot read property 'lastChild' of null
And I don't care about it actually. But Cypress fails tests because of it.
Desired behavior:
I`d like to ignore such kind of errors since they don't influence the flow I need to test
The text was updated successfully, but these errors were encountered: