Testing · Senior · Question 45 of 75

What makes visual regression tests (toHaveScreenshot) flaky, and how do you reduce it?

Explanation

Reference images depend on the platform, so generate and compare them in the same environment as CI.

Further reading

Problem with a question

Testing · Senior · question 45

Test yourself

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

Take this quiz