future-baker-50174
10/27/2022, 12:17 PMjs
cy.intercept("POST", "/api/something", (req) => {
req.on("before:response", () => {
cy.get("#message").should("equal", "Request sent");
});
req.on("after:response", () => {
cy.get("#message").should("equal", "Response received");
});
req.continue();
});
But what can I do instead?