Verification · Testing · Visual regression testing
Page snapshots
Screenshot full pages at fixed viewports.
How to build it
- Set a fixed list of viewport sizes and URLs for each page under test.
- Mask dynamic regions such as dates, ads and avatars before the comparison.
- Run the page snapshot job in CI and keep the diff images as run artifacts.
Signals in a repository
- toHaveScreenshot calls with viewports set in playwright.config, or a mask option in the test.
- A backstop_data directory or __screenshots__ folders uploaded as CI artifacts.
In practice
55 repositories run a tool for this check in the scanned set.
playwright· 55 repos
Examples
-
freeCodeCamp/freeCodeCamp ·
playwrightplaywright test --ui-port=0 -
nousresearch/hermes-agent ·
playwrightplaywright test -c e2e/core/playwright.config.ts local-gateway-attach.spec.ts -
microsoft/vscode ·
playwrightplaywright test -
n8n-io/n8n ·
playwrightplaywright test --project=e2e tests/e2e/building-blocks/ --workers=1 --retries=2 --reporter=list -
langflow-ai/langflow ·
playwrightplaywright test $SCAN_SPECS --project=chromium --shard=$EXPR/$EXPR --workers=2 --retries=1