I'm using the Cypress intercept command to check certain API calls are made, and now I want to check that only those calls have been made.
There does not seem to be any provision in cy.intercept to catch excess calls.
How do I define an exact list of api calls and fail the test if actual list does not match expected list, for example
const expectedCalls = [...]
cy.intercept(api).as('api')
cy.wait('@api').should('deep.eq', expectedCalls)