I am a beginner with cypress. I've been looking for a way to intercept API calls to at least one of multiple URLs. Let's say a button is clicked and something like this code is executed to check if a list of requests were called :
cy.get('@request1').should('have.been.called').log(`Request was made to 'REQUEST1_URL'`)
OR
cy.get('@request2').should('have.been.called').log(`Request was made to ''REQUEST2_URL'`)
I want to check if a request was sent to one url or the other, or both.
Has anyone encountered this problem before ? Any contribution is appreciated. Thanks.