want to stop incoming and outgoing API/service cal...
# i-need-help
f
Currently because of fast execution of refresh operation my page gets refreshed so fast with additional calls so that tool not able to do any assertion , as call from the application refresh the page. Need assistance to see if there is the way we can pause the calls so that cypress can do stuff in between
f
Hey you can try to intercept the calls and wait accordingly before asserting. E.g you have a call to a rest endpoint which will trigger refresh. You intercept the call using cy.intercept and give it an alias e.g "fetch" and then you only do cy.wait('@fetch') for example. Here are the docs for intercepts ! Its a bit tricky in the beginning but actually amazing way to wait just the right amount ^^https://docs.cypress.io/api/commands/intercept
f
Calls which i would like to stop is single page application calls where post a page is loaded, additional refresh is happening with the application which is what i want to pause for few seconds so that i can do the validation. I was in understanding cypress intercept can be used only for API or network calls,, can this be used for single page application calls as my application is based on react