proud-gpu-14798
05/26/2022, 3:39 PMcy.intercept()
with an alias, call cy.wait()
and assert the request.body
contains the expected data. Works perfectly for a single request, or even a series of requests as long as the API calls are made in the same order every single time. However, in many cases the app invokes a half dozen or more API calls to the event endpoint and the order the API calls are completed are not guaranteed. I need some manner to assert the expected calls have been made, but without having to pop my way through the interception stack in a specific order. Thoughts/ideas?proud-gpu-14798
05/26/2022, 3:47 PMcy.get("@alias")
it pops the intercepted requests from the stack. I guess I really just need to access the entire stack as a single object that I can assert against and then clear the stack once I'm done asserting. Or something like that.proud-gpu-14798
05/26/2022, 3:48 PM