Playwright · Senior · Question 49 of 77

How do you make screenshot tests stable across machines?

Show the answer

Correct answer: Generate and compare baselines in the same Docker image

Explanation

Fonts, GPU and OS rendering differ. A shared container with fixed fonts gives the same pixels everywhere.

Further reading

Problem with a question

Playwright · Senior · question 49

Test yourself

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

Take this quiz