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

Cypress - wait for xhr calls to be ended before next test #1598

Open
basilelegal opened this issue Apr 12, 2019 · 0 comments
Open

Cypress - wait for xhr calls to be ended before next test #1598

basilelegal opened this issue Apr 12, 2019 · 0 comments
Labels
to sort need first level analyse and release association

Comments

@basilelegal
Copy link
Contributor

When we run some tests in cypress we end up with http errors like 400 401 or 500:

Screenshot at 2019-04-12 06-24-28

These are not real errors from the code but are due to Cypress behavior.
Cypress won't wait for calls to end before starting the next test but, at the beginning of our test we reset our database. When the request of the previous test is receivied by the API, data don't exist anymore.

Possible workaround:

cypress-io/cypress#1773
cypress-io/cypress#1014

Spec file to see these errors

cypress/integration/app_file/add_file__as_user_spec.js

@basilelegal basilelegal added the to sort need first level analyse and release association label Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to sort need first level analyse and release association
Projects
None yet
Development

No branches or pull requests

1 participant