Cypress · Junior · Question 61 of 75
Why does a hard-coded cy.wait(2000) before checking a result usually fail sometimes?
- 1The wait cancels the request in progress
- 2Cypress doesn't allow waits shorter than 3 s
- 3The result may take longer than 2 s under load
Show the answer
Correct answer: The result may take longer than 2 s under load
Explanation
Timing varies between machines and runs. Waiting on the condition or request removes the guess.