Cypress::intercept function - can intercept external resources as well? #20910
Unanswered
tal-rofe
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I understand I can use
intercept
function in order to intercept some API calls been sent from my frontend code for example.Of course I cannot stub some server code.
In my server code I send some API calls for an external resource.
In order to make full e2e testing, I'd like to stub some server code as well.
So my best option is to intercept these server API calls as well.
Is it possible? What is the best option to fully test the application e2e?
Beta Was this translation helpful? Give feedback.
All reactions