Cypress · Senior · Question 55 of 76

Why may a Cypress test pass locally but fail in CI with the same code?

Show the answer

Correct answer: Different speed, screen size, data or env config

Explanation

Matching viewport, browser, env values and data in both places, plus CI artifacts, narrows the cause.

Further reading

Problem with a question

Cypress · Senior · question 55

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