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

Steps in a scenario end abruptly and service calls spill into next scenario #4189

Closed
koalabearGH opened this issue May 14, 2019 · 1 comment

Comments

@koalabearGH
Copy link

koalabearGH commented May 14, 2019

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 the beforeeach but still run into the problem. The tests do pass successfully when run individually using it.only

Current behavior:

image

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

@jennifer-shehane
Copy link
Member

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

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