-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Problem cancelling XHRs from previous test (bis) #19141
Comments
just to confirm, it's the same on 9.1.1 version |
Yes, I tested it too with the 9.1.1 version and the behaviour is the same. I'll update the description accordingly |
Might me related to #19039 |
@devfservant / @JohnnyTheBoy , could you try on version 9.2.0, we introduced some changes to our proxy server that may affect this issue. #19043 |
I'll test with the latest version of Cypress ASAP and will keep you up-to-date |
I can confirm that the issue is still here. I did the test with the latest version of Cypress (9.3.1) |
Having the same issue on 9.6.0 |
Exact same behavior here with version 9.7 and still in 12.6.0. Only the systematic cy.Wait() is working here and I think it's not a good practice. Does someone ca look at that or offer us some perspectives ? |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
I am going to test with the latest Cypress version this week and will keep you inform quickly |
@devfservant Was this issue resolved? I would it would be in v12 since we clear the state between tests. |
After testing, I no longer observe the issue. It seems to have been fixed, thank you :) |
Current behavior
I have a file containing two tests:
But when my second test starts, some requests from the first test are not cancelled and are still running:
In my case, those are cross-origin requests and so it failed my test suite.
My workaround is:
cy.wait(1000)
in aafterEach
{ chromeWebSecurity: false }
in my cypress.json configThe fact that my tests pass with the
cy.wait(1000)
at the end of the first test highlights the problem.Desired behavior
In this situation, I expect Cypress to start each test from a clean state.
Therefore, there should be no on-going request when launching a new test.
Test code to reproduce
see above
Cypress Version
9.3.1
Other
@angular/core@^13.0.0
and@azure/msal-angular@2.0.5
cy.login
has nothing very special; it follows this recipe taken from https://stackoverflow.com/a/68298957/12292636The text was updated successfully, but these errors were encountered: