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

Fix async timeouts #5097

Merged
merged 19 commits into from
Sep 27, 2019
Merged

Fix async timeouts #5097

merged 19 commits into from
Sep 27, 2019

Conversation

kuceb
Copy link
Contributor

@kuceb kuceb commented Sep 6, 2019

fix async tests with done callbacks never timing out after cypress command

add config value for asyncTestTimeout (default 4000)

user facing changes

  • tests with a done callback will now timeout after defaultCommandTimeout after all commands have run

tasks

  • [review] remove adding new config value: use defaultCommandTimeout as asyncTestTimeout (for now)
  • waiting on decaf PR Decaf fix-async-timeouts #5096
  • [review] add e2e test for async timeout failure (edit existing)
  • [review] remove runner_spec.js tests, keep test on :92

Pre-merge Tasks

  • Have tests been added/updated for the changes in this PR?
  • Has the original issue been tagged with a release in ZenHub?

@cypress
Copy link

cypress bot commented Sep 6, 2019



Test summary

3360 0 47 0


Run details

Project cypress
Status Passed
Commit 7715c48
Started Sep 27, 2019 8:54 AM
Ended Sep 27, 2019 8:59 AM
Duration 04:48 💡
OS Linux Debian - 9.8
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@kuceb kuceb mentioned this pull request Sep 9, 2019
@chrisbreiding chrisbreiding mentioned this pull request Sep 20, 2019
22 tasks
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay this looks great! Will merge in after the keys are fixed. 👍

@jennifer-shehane jennifer-shehane merged commit d8bdd4a into develop Sep 27, 2019
@MadLittleMods
Copy link

Does this PR also fix #4742 ?

grabartley pushed a commit to grabartley/cypress that referenced this pull request Oct 6, 2019
* fix async timeouts

* add tests

* add asyncTestTimeout config value

* fix angular_spec, add timeout test

* fix connectors_spec

* fix querying_spec

* fix e2e test e2e_config_fails

* fix e2e specs, change calls to cy.timeout()

* remove added config value, use `defaultCommandTimeout`

* fix timing out internal tests

* cleanup

* add e2e test for async timeout after cy command

* [review] remove most of runner_spec

* add back runner_spec, whoops
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 23, 2019

Released in 3.5.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment