-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Mixing cy.on()/cy.once() with a one-argument it() function causes test to hang #2478
Labels
Comments
I believe this bug is caused by Cypress clearing the timeout erroneously, so the test hangs forever. Thanks for the bug report! |
kuceb
added
stage: needs investigating
Someone from Cypress needs to look at this
type: bug
labels
Jan 28, 2019
cypress-bot
bot
added
stage: needs review
The PR code is done & tested, needs review
and removed
stage: needs investigating
Someone from Cypress needs to look at this
labels
Sep 6, 2019
cypress-bot
bot
added
stage: work in progress
and removed
stage: needs review
The PR code is done & tested, needs review
labels
Sep 25, 2019
jennifer-shehane
added
stage: pending release
and removed
stage: work in progress
labels
Oct 1, 2019
The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released. |
Released in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Giving the lambda passed into the
it()
block a single argument will cause Cypress to pass a function in that must be called for the test to finish.If you use the
cy.on()
command inside anit()
block with a single-argument function, the test will hang when it reachescy.on()
.HTML:
Test:
Current behavior:
Notice how the test has been running for almost 14 minutes.
Desired behavior:
This code should not cause Cypress to hang.
Versions
Cypress 3.1.0
Windows 10
Electron 59
The text was updated successfully, but these errors were encountered: