Skip to content

Intercept not working properly #27251

Discussion options

You must be logged in to vote

If anyone has the same error and is desperate as I was, I had a stupid error.
My URL started without a slash.
The requests were send to the cypress-own-backend.
So the post-Request was mocked, because there was no post in the cypress-backend, but the get-Request wasn't mocked, because cypress tried to get something from this backend.

so instead of const url = 'this/is/my/url' I just needed to write const url = '/this/is/my/url'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by B34v0n
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants