How to wait for server response that changes by the request #21059
Unanswered
MattSom
asked this question in
Questions and Help
Replies: 1 comment
-
Check the
Either way using the If you are worried about the data retrieved from the request you can spy on request. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have a test that clicks for a button on the UI that'll trigger the server to create a custom
Mail
object in the db. So Iwait(1000)
so that the server has time to create it:The docs suggests that instead of waiting:
just do this:
But what if my clicking changes the actual data that the get request will return?
Without the click it would return nothing as there are no mails created. So I figure intercepting the request could easily resolve, but return a 0 instead of 1.
Beta Was this translation helpful? Give feedback.
All reactions