This thread is trying to answer question "Why does my screenshot test keep failing due to pixel differences between the expected and actual images?"
Hi, there can be slight differences between headless and headful. Also between platform and browser. Be sure to take the reference screenshots on the same platform, on the same browser, on the same headless/headful state, etc.
This page has a good explanation: https://playwright.dev/docs/test-snapshots
It also includes instructions how to generate the screenshots/snapshots for the (Docker) runs in CI.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].