-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Some asynchronously thrown spec errors do not fail test #8802
Comments
This affects |
Wouldnt this be just a matter of binding correctly cypress/packages/driver/src/cy/listeners.js Lines 52 to 53 in 9ccc7a6
cypress/packages/driver/src/cypress/runner.js Line 923 in 3e52df0
cypress/packages/driver/src/cypress/cy.js Line 95 in 052892d
If that's the answer then I could work on fixing this. |
Internal Jira issue: TR-670 |
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 |
Current behavior
Uncaught rejections thrown in tests that use
done
will not fail the test when nocy
chain is active:cypress/packages/server/test/support/fixtures/projects/e2e/cypress/integration/caught_async_sync_test_spec.coffee
Lines 89 to 95 in f65fd61
Similar behavior exists for other unhandled rejections:
cypress/packages/server/test/support/fixtures/projects/e2e/cypress/integration/caught_async_sync_test_spec.coffee
Lines 70 to 73 in f65fd61
Potentially related: some asynchronous test failures are incorrectly attributed to the AUT, not the spec window.
Desired behavior
Correctly attribute unhandled rejections and exceptions to the spec or the AUT, do not miss handling any errors.
Test code to reproduce
See #8221
The text was updated successfully, but these errors were encountered: