-
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
Cancelled XHR Stubbed Request still has loading indicator next to it #4130
Comments
Hey @nartc, can you see the cancelled state of the XHR within the network panel of the devTools? Can you provide any test code we can run to reproduce this state exactly? |
hi @jennifer-shehane , I can see the cancelled state of the XHR in the Network tab. I noticed this behavior in a very specific OAuth Redirect environment but I'll see if I could come up with a reproducible repository :) Thanks for checking in. |
https://github.com/nartc/cypress-cancelled-xhr Above is the reproducible repo (it is Angular). Steps are as follow:
Synopsis: On start, the app will redirect from After the test has been finished, you can see the XHR Request for Thanks |
Thanks so much for providing this example. I do see the issue - that the loading indicator remains after the XHR request has been cancelled. I thought this may be related to this change made in Chrome 71 - which we have already fixed and is pending release in version 3.3.0, since I tracked down this 'cancel' display to the 'window:onload' event - #3973 So I ran your repo through The code for this is done in #3974, but this has yet to be released. We'll update this issue and reference the changelog when it's released. |
Released in |
Current behavior:
Desired behavior:
Cancelled request (by navigating away) should not have the loading indicator next to it,
Steps to reproduce: (app code and test code)
Versions
Cypress 3.2.0
Chrome on MacOS X
The text was updated successfully, but these errors were encountered: