Skip to content

Image mocking/stubbing clarification #9144

Discussion options

You must be logged in to vote

Ugh, so after bouncin' around the Web for a while I finally came across this comment which called out cy.route2. Don't know if I can put into words just how frustrating finding this information has been.
If the Cypress team's just gonna start adding numbers on an already established API, it'd be great if there was some sort of global recipes/examples page that outlines how to do certain things instead of having to know the name of every Cypress method and go poking through it's documentation.

For anyone else that comes across this post, here's what I ended up with:

// within cypress.json

"experimentalNetworkStubbing": true,
// within my test

cy.route2('GET', 'http://image.tmdb.org/t/p/**',

Replies: 3 comments 2 replies

Comment options

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

You must be logged in to vote
2 replies
@the0neWhoKnocks
Comment options

@the0neWhoKnocks
Comment options

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
3 participants