I have the intended functionality of canceling a pending XHR request in the application. I want to verify that the request is canceled after invoking the cancel action.
Right now I have this:
cy.intercept('GET', '**/request/**').as('Request');
invokeRequest();
invokeCancel();
cy.wait('@Request');
However, cypress is timing out on the cy.wait(). Is there a way to verify the request has been canceled?