This will result in an error, no matching mock found for <the url>.
The original URL I needed was much longer and more complex (YouTrack API filters), but I could narrowing it down to the commas as minimal error cause.
Removing the commas from the query works (but that won't suffice my testing requirements).
As a workaround I passed a regex instead of a string to the .intercept method and it worked just fine, but this should not be necessary.
Request-URL with more complex query parameters won't match.
This will result in an error,
no matching mock found for <the url>
.The original URL I needed was much longer and more complex (YouTrack API filters), but I could narrowing it down to the commas as minimal error cause.
Removing the commas from the query works (but that won't suffice my testing requirements).
As a workaround I passed a regex instead of a string to the
.intercept
method and it worked just fine, but this should not be necessary.