79635199

Date: 2025-05-23 09:15:33
Score: 1
Natty:
Report link

I found this SO question while debugging a similar issue in my own project. It was very useful but it did not provide the full solution for me. I would like to add the following Cypress documentation page explains how Cypress.on() and cy.on() work: https://docs.cypress.io/api/cypress-api/catalog-of-events. This page starts by listing names of events, information I did not need. When I read on however, I saw the heading: "Binding to Events". The difference between Cypress.on() and cy.on() is explained there. This difference has to do with the amount of test code for which exceptions have to be ignored.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Martijn Dirkse