I am trying to intercept the calls but the cy.wait().should is only tapping the last call.
Intercept:
cy.intercept('POST',
'http://localhost:9001/api/myApp/someURL/input*',
(req) => {
req.reply({ fixture: `input/orInput` });
}).as('queryGridInput').wait(1000);
I perform the button click action. All 10 network calls happen, but only 1 gets tapped by cy.wait().should .
Assertion
cy.wait("@queryGridInput").should(xhr => {
cy.checkRequestBody(xhr.request.body,expectedRequestBody);
});