Skip to content
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

Closed
dwelle opened this issue Nov 15, 2017 · 3 comments
Closed

failures in headed tests randomly invoke debugger #916

dwelle opened this issue Nov 15, 2017 · 3 comments

Comments

@dwelle
Copy link

dwelle commented Nov 15, 2017

  • Operating System: win7
  • Cypress Version: 3.0.2

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).

@brian-mann
Copy link
Member

It's likely this setting in your dev tools

screen shot 2017-11-15 at 9 46 28 am

@dwelle
Copy link
Author

dwelle commented Nov 15, 2017

@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.

@dwelle
Copy link
Author

dwelle commented Nov 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants