We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a cypress spec has a before() hook and it fails, the first it() displays as a fail.
When a cypress spec has a before() hook and it fails, the before() hook displays as a fail and the first it() displays as skipped.
Tester would think there was a failure in test 1 instead of the prerequisite setup:
describe('My First Test', () => { before(() => { expect(true).to.equal(false) }) it('test #1', () => { cy.log('Test 1') }) it('test #2', () => { cy.log('Test 2') }) })
12.17.4
18.20.6
Windows 11 Enterprise v22H2
No response
The text was updated successfully, but these errors were encountered:
This is expected behavior. We have to generate a test to insert the failure into to fail with this status.
Sorry, something went wrong.
I disagree, test #1 did not fail in the scenario above.
No branches or pull requests
Current behavior
When a cypress spec has a before() hook and it fails, the first it() displays as a fail.
Desired behavior
When a cypress spec has a before() hook and it fails, the before() hook displays as a fail and the first it() displays as skipped.
Tester would think there was a failure in test 1 instead of the prerequisite setup:
Test code to reproduce
Cypress Version
12.17.4
Node version
18.20.6
Operating System
Windows 11 Enterprise v22H2
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: