-
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
failures in headed tests randomly invoke debugger #916
Comments
@brian-mann nope, that's not it. That would not cause the behavior I'm getting -- it'd be consistent. So unless cypress (browser) is keeping that setting buried down somewhere in cache, and decides to use it as it pleases, I don't think that's what's happening. |
I'll close this for now. We'll see if some more people are getting this, or if it happens to be some quirk of my install. |
This was referenced Mar 26, 2021
This was referenced Feb 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a Feature or Bug?
bug
Current behavior:
Sometimes, particularly when the cypress runner browser is open for longer periods time, a failure (be it command/assertion failure, or some unhandled exception such as TypeError) causes a debugger to be invoked (i.e. it pauses the script execution).
Restarting the cypress browser window solves the issue (until it pops up again hour or sooner later -- I haven't figured out the pattern yet).
How to reproduce:
No idea.
I've registered a handler on
fail
event which does some things and then simply rethrows the error, but I believe the debugger thing happens even when the handler isn't registered, so I don't think it's related to this at all.Just putting it here in case someone has an idea what's going on or encounters the same thing.
EDIT: to elaborate, the debugger is never being invoked until some point in time, and then from that point onward, it's being invoked 100% of the time (until I restart the browser window).
The text was updated successfully, but these errors were encountered: