https://cypress.io logo
It could either be a matching problem or you are d...
# e2e-testing
e
It could either be a matching problem or you are defining your intercept too late. The intercept definition needs to always be defined before the request occurs or Cypress won't actually intercept it correctly. I typically define all my intercepts in a beforeEach or at the start of each test so I know there's no conflicts with timing. I would try defining your intercept once outside of the forEach, as this might fix the timing although I don't know exactly what triggers your request. Defining the intercept multiple times is unnecessary anyway. Additionally, I would try replacing the single wildcard char
*
with a double wildcard
**
in your url