toHaveScreenshot
Also written: mask, maxDiffPixels, --update-snapshots, -u
A Playwright assertion that compares the page or one element with a baseline image. `mask` hides changing parts, `maxDiffPixels` forgives small noise and `--update-snapshots` accepts a change.