I have two intercepts:
cy.intercept(
'GET',
'**/foo/*',
{
fixture: 'foo.json'
}
)
and
cy.intercept(
'GET',
'**/foo/bar',
{
fixture: 'bar.json'
}
)
I always get the response from the first intercept. Changing the order of them in the code doesn't matter. What am I doing wrong?
How do I get a response from a specific url over a glob one?