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
nutritious-honey-65632
07/22/2022, 8:46 AM
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
acceptable-hamburger-48790
07/22/2022, 9:05 AM
wait would yield whole response which includes header and body and inside then block one can get what they want to validate
n
nutritious-honey-65632
07/22/2022, 9:59 AM
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.