October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Run Website Screenshot Change Checks in GitHub Actions

Use Playwright’s screenshot assertions in GitHub Actions, commit reviewed baselines and keep browser rendering conditions consistent. See setup, tolerance guidance and alternatives.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a straightforward visual regression check in GitHub Actions, use Playwright Test’s built-in toHaveScreenshot() assertion. It creates a reference screenshot on its first run, then compares later captures against that baseline. Commit reviewed reference images with your tests, run CI in a consistent browser environment, and treat visual checks as a complement to—not a replacement for—functional tests.

Build a Playwright screenshot check

Choose a representative page or UI state and navigate to a predictable test site. Playwright’s screenshot assertion captures the page and checks it against a stored reference image. The first run creates the reference; subsequent runs compare against it. See Playwright’s visual comparisons documentation.

As an Amazon Associate I earn from qualifying purchases.

For example, add a test like this to a Playwright Test project:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
import { test, expect } from '@playwright/test';

test('home page visual appearance', async ({ page }) => {
  await page.goto('http://127.0.0.1:3000');
  await expect(page).toHaveScreenshot('home-page.png');
});

Start the site in the test environment before the test runs, and ensure the route and its data are stable. Use additional tests for other important pages or UI states rather than relying on one screenshot to cover the whole site. A screenshot comparison detects visual differences; it does not establish that buttons, links, or other behavior work correctly.

#1 Best Overall
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Create and update reference screenshots deliberately

On the first execution, Playwright writes the expected image into the test snapshot directory. Inspect that image before accepting it, then commit it alongside the test so CI can compare future captures against the same reference.

When a design change is intentional, regenerate the references with:

Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
npx playwright test --update-snapshots

Review the changed images and commit the updated snapshots with the code change. Avoid updating references automatically in ordinary CI runs: that would replace the expected output instead of flagging a change for review. Playwright documents the update option and its screenshot comparison settings in its visual comparisons guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Run the tests in GitHub Actions

A GitHub Actions workflow needs to check out the repository, set up the runtime, install the project’s dependencies and run its Playwright test command. The exact runtime and install commands depend on the project; below is a compact Node.js example for a repository with an npm lockfile and a Playwright configuration.

Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.
name: Visual checks

on:
  pull_request:
  push:
    branches: [main]

jobs:
  visual:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: npm
      - run: npm ci
      - run: npx playwright install --with-deps
      - run: npm test

Adjust the Node version, test script and server startup to match your project. The workflow must start the application or point tests at a deployed test environment before running screenshot assertions. Playwright’s continuous integration documentation covers CI setup; use it to align installation and execution with your project’s configuration.

Keep screenshot rendering stable

Screenshot comparisons are sensitive to rendering differences. Playwright notes that output can vary with the host operating system, browser version and settings, hardware, power source, headless mode and other factors; see its visual comparison guidance. Generate and compare baselines in the same operating-system and browser environment where possible. A consistent CI runner or container configuration helps reduce avoidable variation.

Rank #4
Sale
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
  • Keep the browser version and test dependencies consistent between baseline generation and CI.
  • Make page content deterministic where feasible: control test data and avoid capturing transient states such as loading indicators.
  • Use predictable viewport and device settings for the test rather than relying on incidental local defaults.
  • Investigate intermittent differences before increasing tolerance; rendering drift and genuine UI changes can both cause a mismatch.

Configure comparison tolerance carefully

Playwright provides options including threshold and maxDiffPixels to control acceptable pixel differences. The appropriate values depend on the page and rendering conditions; review actual diffs before changing them. A broader tolerance can let harmless rendering variation pass, but it can also conceal a meaningful visual regression. Tolerance does not make an unstable test environment stable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose local baselines or hosted visual review

Approach What its documentation establishes Useful decision point
Playwright screenshot assertions Captures and compares against reference images; references can be updated with --update-snapshots. Playwright documentation. Use when local, committed baseline files and review in your existing code workflow fit your team.
Percy with Playwright Percy documents a Playwright client and hosted snapshot workflow; its repository also describes an optional visual-change gate. Percy Playwright client and repository documentation. Consider it if you want hosted screenshot review; confirm current integration behavior and service terms for your setup.
Chromatic Chromatic documents GitHub Actions automation and Playwright visual testing. GitHub Actions guide and Playwright setup. Consider how it fits your existing Storybook or Playwright workflow and hosted review needs; check current setup and service terms.

These documentation sources establish workflow options, not a comparative benchmark of accuracy, cost or ease. Choose based on how your team wants to manage baselines and review changes.

Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

Troubleshoot common failures

  • CI reports a screenshot mismatch immediately: compare the actual image with the committed reference. Confirm that the intended baseline is checked in and that CI uses the expected browser and rendering configuration. Update snapshots only after reviewing an intentional change.
  • A test fails intermittently: look for unstable page content, incomplete loading, or differences in browser and runner conditions. Stabilize the test inputs and capture point before adjusting tolerance.
  • The first run creates an unexpected reference: check that the test reached the intended URL and UI state and that the application was ready to render. Review the generated image before committing it.
  • CI cannot find or install the browser: ensure the workflow installs the Playwright browser binaries and required system dependencies for its runner; the CI installation steps may differ by project and environment.
  • An intentional redesign causes many failures: regenerate snapshots with npx playwright test --update-snapshots, inspect the resulting changes, and commit the reviewed references together with the design update.

Or skip the browser setup

If you need an image capture rather than a committed Playwright visual assertion, ScreenshotNeo is a website screenshot API and MCP server. A single GET request returns an image or PDF. For example, save a screenshot from cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. Cookie banners and consent notices, newsletter popups and chat widgets are removed before capture; bot checks, blank pages, failed loads and cache hits are not billed. Its MCP server lets AI agents use screenshot tools. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots.

Sign up for 1,000 free screenshots a month, with no card required.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.