Cypress · Senior · Question 43 of 76

Why should you avoid cy.wait on a fixed number before an assertion even in CI-only tests?

Show the answer

Correct answer: CI timing varies more than local timing

Explanation

Shared runners are slower and noisier. Conditional waits adapt; fixed ones become flaky or slow.

Further reading

Problem with a question

Cypress · Senior · question 43

Test yourself

Take the Cypress · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz