-
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
Cypress prints (uncaught exception) undefined: undefined
when promise rejects with a string
#24915
Comments
(uncaught exception) undefined: undefined
when promise rejects with a string
Hey @geritol , thanks for opening an issue! I can certainly see how that would be annoying - we do print the rejection with appropriate error message to the browser console, but you're right that we don't always parse out the correct message for the Cypress command log resulting in the "undefined: undefined" behavior. I'll go ahead and forward this enhancement on to the team, but there's no guarantee if/when they'll have bandwidth to dig into it. In the interim, we always welcome open source contributions if you (or anyone else) if interested in taking a stab at this! I did a little investigation and it should be a fairly trivial issue for a first-time contributor. It appears that the logic in |
The code for this is done in cypress-io/cypress#25059, 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
When the app code rejects with a string:
(uncaught exception) undefined: undefined
and fails the testDesired behavior
Test code to reproduce
https://github.com/geritol/cypress-bug-repro
Cypress Version
11.2.0
Node version
v16.18.1
Operating System
macOS 12.6
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: