Configure cy.intercept to Only Intercept a Network Request Once

InstructorFilip Hric

Share this video with your friends

Send Tweet

When testing certain user stories, you may want to start with a clean state, but then return to the initial page and see the data you have created. This can be problematic if you are stubbing your requests. Luckily, you can limit how many times you a request should be intercepted.