You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cy.intercept accepts as url type RouteMatcher
Maybe you could do it as well because id like to better not rely on the example id for path params
better have a regex. In my case it's uuid for example
Additional to this:
cy.mockWithOpenAPI({ url: '/accounts/d3a98f9b-03c6-4bca-89e5-aac492a98f71/messages' }).as('messages');
this:
cy.mockWithOpenAPI({ url: new RegExp( /accounts/${UUID_REGEX}/messages).as('messages');
cy.intercept accepts as url type RouteMatcher
Maybe you could do it as well because id like to better not rely on the example id for path params
better have a regex. In my case it's uuid for example
Additional to this:
cy.mockWithOpenAPI({ url: '/accounts/d3a98f9b-03c6-4bca-89e5-aac492a98f71/messages' }).as('messages');
this:
cy.mockWithOpenAPI({ url: new RegExp(
/accounts/${UUID_REGEX}/messages).as('messages');