cypress wait for intercept never gets triggered

Viewed 250

I register an interceptor:

cy.intercept("/api/v1/payments/customers/payment_methods.json*").as('payment_methods')

and then make an action that triggers this request:

GET 200 /api/v1/payments/customers/payment_methods.json?some-query-params-here

then wait for it

cy.wait("@payment_methods");

and even tho I can see the get request after the wait has been registered, the wait times out:

enter image description here

any ideas what I'm missing here?

0 Answers
Related