wait.then(() = > {}) - this is basically used when...
# e2e-testing
a
wait.then(() = > {}) - this is basically used when you are waiting for a request to complete and then get the response and perform some action like validate response content, status code etc.. then() yield the content coming out of wait()
n
yeah, you are right, with other 2 you can't play with the response. But does all 3 waits wait for the same status to be completed or for example first one waits for the response header to get and not whole response. I definitely want to try that
a
wait would yield whole response which includes header and body and inside then block one can get what they want to validate
n
I understand that, but my goal is to find is there a time difference between those three. Does any of the examples waits longer than other two.