https://cypress.io logo
cy.intercept gets wrong response
# i-need-help
w
Hi, so I created these two:
Copy code
cy.intercept("GET", "/client/coverage-request-batch/*").as(
      "closingBatchDetailsPage"
    );
Copy code
cy.intercept("POST", "/client/coverage-request-batch/*/discardfile").as(
      "deleteUploadedFile"
    );
But, when the responses is there, Cypress detects the first one, even though the response is 'POST'. Am I doing something wrong? Thank you beforehand.