Is there a way to assert that a route has not been called in Cypress?
问题 I am trying to assert that a route has not been called in Cypress. I thoroughly looked through the documentation and have found nothing. I am trying to do something like this: cy.get('@myRouteAlias').should('have.not.been.called'); I am currently working around this by asserting that the successful request toast message is not being displayed but it is a flimsy solution. Any ideas? 回答1: It is very difficult to test a situation where an action has not occured. With this type of assertion, you