-
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
4.12.1 Regression: after() block causes errors in before() to be hidden #9162
Comments
This is a regression introduced in 4.12.1. This must have been introduced in #8113, since there were very few commits in this release and that one involves test hooks. describe('hangs when error in a before() block', () => {
before(() => {
expect(true).to.be.false
})
after(() => {})
it('has a test')
it('has another test')
}) 4.12.04.12.1 |
The code for this is done in cypress-io/cypress#9527, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
If I have a
before()
that threw an error, and anything (or even nothing) inside anafter()
block, the test runner gets hung up and will not display the error from thebefore()
.This behavior only occurs on tests with multiple
it
blocks.Desired behavior
Should behave the same as when I remove the
after()
Test code to reproduce
Versions
At least 4.12.1 through 5.6.0
The text was updated successfully, but these errors were encountered: