Request Interception: Multiple Requests to one GQL...
# i-need-help
f
Hey! I just ran into following issue: I wait for my fetch requests to finish (multiple ones to the same graphql endpoint). But i now have a case where my wait does not see any intercepted calls left therefore skips. This is because my request seems to be sent about a second after the click. Cypress continues and expects an element which is not fetched yet. I can have an arbitrary wait and then wait for my request to finish. But i really don't like that ^^'. The attached screenshot shows the case with the one second wait to give a concrete example. I'd appreciate any help ! Best Regards Jonas

https://cdn.discordapp.com/attachments/1108353364288348191/1108353364393214082/Bildschirmfoto_2023-05-17_um_13.17.19.png

Some additional info: I wait using the the cy.get alias.all and wait for all requests which have responseWaited set to false. It sends more request which are not caught by that, since around a second after, two more fetches are done as it can be seen in the screenshot.
My current focus is now on aliasing all queries and mutations but there is a bug that if i use req.alias = MY_ALIAS it will not be displayed in the runtime this is rather unfortunate since i thought my aliases are not assigned altough they are and waits work ^^'