You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing my test similar to this route2 example, and cy.visit follows it. I noticed that there is an assertion failure, but how come Cypress consider test as passed (see screenshot)?
Uncaught exception from application, continuing. CypressError: The following error originated from your test code, not from Cypress.
A request callback passed to cy.route2() threw an error while intercepting a request:
expected {} to deeply equal { Object (action_type, floating, ...) }
...
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Desired behavior
I would assume test fails when any assertion failure occurs.
Test code to reproduce
Versions
Cypress version: 5.4.0
Browser: Chrome version 86.0.4240.80
Mac OS: version 10.15.6
The text was updated successfully, but these errors were encountered:
Could you please provide a full example of this throwing, but the test passing? Do you have any event listeners set up? https://on.cypress.io/catalog-of-events maybe that listen on fail of the test and handle it?
Current behavior
I am writing my test similar to this
route2
example, and cy.visit follows it. I noticed that there is an assertion failure, but how come Cypress consider test as passed (see screenshot)?I see this error message in browser's console:
Desired behavior
I would assume test fails when any assertion failure occurs.
Test code to reproduce
Versions
Cypress version: 5.4.0
Browser: Chrome version 86.0.4240.80
Mac OS: version 10.15.6
The text was updated successfully, but these errors were encountered: