Is it possible to hold a network request for a while? #17912
Answered
by
herecydev
wilcoschoneveld
asked this question in
Questions and Help
-
|
I would like to hold off a request and do some interaction and assertions before allowing it to complete. This is to simulate a slow server and to test if the app is interactive while the data is loading. I'm looking for something like this: Is this possible? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
herecydev
Aug 27, 2021
Replies: 1 comment 4 replies
-
|
Yes there is a delay option that you can pass to it |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
wilcoschoneveld
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes there is a delay option that you can pass to it
https://docs.cypress.io/api/commands/intercept#Arguments