You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently running into an issue when running a test suite. I believe Cypress is already aware of the fact that the browser does not seem to be fully closed in between tests and also that the xhr calls are "spilling over" into the subsequent tests. (#216)
The last issue that was opened regarding this, linked above issue #216, was from 2016 and was closed in favor of the Lifecycle events feature which has not yet been delivered.
Are there any workarounds for this currently?
We tried adding explicit waits and also clearing the localstorage and cookies in the beforeeach but still run into the problem. The tests do pass successfully when run individually using it.only
Current behavior:
Desired behavior:
The tests in the file (currently a total of 15 tests) should pass as expected. We tried splitting the tests into separate files but encountered the same issues. (When running the tests individually using it.only, the tests pass with no issues)
Steps to reproduce: (app code and test code)
Per the attached screenshot, there are multiple scenarios (total of 15 in this case) in this file.
Also, as you can see, the top scenario simply ends abruptly at the cy.visit step although there are many steps after that and the next scenario begins. However, when the next scenario begins, the service calls from the previous scenario seem to still be running and this seems to be causing issues and failures in subsequent tests.
Unfortunately we have to close this issue as there is not enough information to reproduce the problem. This does not mean that your issue is not happening - it just means that we do not have a path to move forward.
Please comment in this issue with a reproducible example and we will reopen the issue. 🙏
Hi All,
We are currently running into an issue when running a test suite. I believe Cypress is already aware of the fact that the browser does not seem to be fully closed in between tests and also that the xhr calls are "spilling over" into the subsequent tests. (#216)
The last issue that was opened regarding this, linked above issue #216, was from 2016 and was closed in favor of the Lifecycle events feature which has not yet been delivered.
Are there any workarounds for this currently?
We tried adding explicit waits and also clearing the
localstorage
and cookies in thebeforeeach
but still run into the problem. The tests do pass successfully when run individually usingit.only
Current behavior:
Desired behavior:
The tests in the file (currently a total of 15 tests) should pass as expected. We tried splitting the tests into separate files but encountered the same issues. (When running the tests individually using
it.only
, the tests pass with no issues)Steps to reproduce: (app code and test code)
Per the attached screenshot, there are multiple scenarios (total of 15 in this case) in this file.
Also, as you can see, the top scenario simply ends abruptly at the
cy.visit
step although there are many steps after that and the next scenario begins. However, when the next scenario begins, the service calls from the previous scenario seem to still be running and this seems to be causing issues and failures in subsequent tests.Versions
Cypress package version: 3.2.0
Cypress binary version: 3.2.0
Windows 10 Enterprise 64-bit
Chrome 74
The text was updated successfully, but these errors were encountered: