Skip to content

Cypress does report beforeEach and afterEach hooks errors only afterEach error #24712

Open
@jjkavalam

Description

Current behavior

Following test (cypress/e2e/spec.cy.js) throws 2 errors. Both are reported in the console output. But the dashboard only reports one of them. Please see the linked repo for screenshots and logs.

Desired behavior

All errors should be reported in the dashboard.

Test code to reproduce

https://github.com/jjkavalam/cypress-bug-report-1

Cypress Version

11.1.0

Node version

v14.14.0

Operating System

macOS 12.3.1

Other

No response

Activity

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

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.type: unexpected behaviorUser expected result, but got another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions