Understanding Visual Comparisons in Playwright
Too Long; Didn't Read
In some projects it is crucial to respect the same size for the component on the page, or to guarantee the exact visualization each time, or to ensure the same colour, etc. Playwright exposes this feature out of the box. To do that, Playwright uses snapshots and compares a specific snapshot with the test result to check that nothing has changed.