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

You can run Storybook visual regression tests without Chromatic by rendering stories in Playwright, saving approved screenshots in your repository, and comparing later runs against those baselines. That route avoids a required Chromatic account, but your team owns browser consistency, image diffs, review, baseline updates, and CI artifacts.

What Storybook visual regression testing checks

A visual regression test captures a rendered story as an image and compares it with a known-good screenshot. A difference is a signal to inspect, not automatically a bug: it might reveal an unintended layout shift, or it might be a design change that should become the new baseline after review.

Keep the workflow in four parts: render the story, capture an image, compare it to its baseline, and decide whether the difference is expected. Separating those jobs makes it easier to replace a capture tool, change a diff threshold, or improve review without rewriting your stories.

What Storybook provides—and what it does not

Storybook’s documented visual-testing workflow uses its @chromatic-com/storybook addon and connects the workflow to a Chromatic account. The documented panel is not a Chromatic-free local image-diff engine. If avoiding Chromatic is the goal, use a separate capture and comparison workflow.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Do not confuse DOM snapshots with screenshot comparisons. Storybook’s snapshot-testing guide demonstrates saving snapshots through a runner hook; its example concerns DOM output, not pixel-image comparison.

Choose the current test integration for your project

Storybook’s current Test Runner documentation says the Jest-based runner uses Playwright to turn stories into executable tests, but also says it has been superseded by the Vitest addon and recommends Vitest for Vite-powered Storybook frameworks. This does not prevent using Playwright directly for screenshots; it means older tutorials presenting the Test Runner as the default may not match current Storybook guidance.

Storybook also documents a Playwright addon with screenshot generation and comparison helpers, including a toMatchScreenshots matcher using jest-image-snapshot. Its listed compatibility covers Storybook 10, Playwright approximately 1.59, and Node.js 24.15 or later, and notes React-focused testing and Component Story Format constraints. Check the live addon page and your actual versions before installing: compatibility changes over time.

Build a self-managed Playwright workflow

The simplest robust approach is to run Storybook in a consistent environment, give Playwright explicit story URLs, and use Playwright’s screenshot assertions to compare captures with committed baselines. Playwright creates a baseline on the first run when configured for snapshot testing; subsequent runs compare to it. Review and commit new baselines deliberately rather than treating the first capture as approved by default.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

1. Install and configure Playwright

In a project with Node.js and a package manager already configured, install Playwright’s test package and browser. Pin the versions in your lockfile and keep the CI browser installation aligned with local use.

npm install --save-dev @playwright/test
npx playwright install chromium

Create playwright.config.ts. This example uses Chromium, a fixed viewport, and an explicit snapshot directory; it assumes the project’s Storybook dev server runs on port 6006.

import { defineConfig } from '@playwright/test';

export default defineConfig({
  testDir: './visual-tests',
  snapshotPathTemplate: '{testDir}/__screenshots__/{testFilePath}/{arg}{ext}',
  use: {
    browserName: 'chromium',
    viewport: { width: 1280, height: 800 },
    deviceScaleFactor: 1,
    baseURL: 'http://127.0.0.1:6006',
  },
  webServer: {
    command: 'npm run storybook -- --ci --port 6006',
    url: 'http://127.0.0.1:6006',
    reuseExistingServer: !process.env.CI,
    timeout: 120_000,
  },
});

If your package script or Storybook command differs, adjust the webServer command and URL together. A production Storybook build served by a static server is also a valid option; the important requirement is to use the same build and serving approach when generating and checking baselines.

2. Test selected stories by their Storybook URLs

Storybook’s built-in story iframe accepts an id query parameter. The ID is the story’s normalized component-and-story ID, commonly visible in the Storybook URL or generated story index. This example tests one story; add cases for the stable, high-value stories that matter to your product.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
import { test, expect } from '@playwright/test';

test('primary button default state', async ({ page }) => {
  await page.goto('/iframe.html?id=components-button--primary&viewMode=story');
  await page.evaluate(() => document.fonts.ready);
  await expect(page.locator('#storybook-root')).toHaveScreenshot('button-primary.png', {
    animations: 'disabled',
    caret: 'hide',
  });
});

Use your real story ID, and verify the target element contains the component rather than surrounding Storybook UI. If you want the full browser viewport, use page instead of the root locator; element captures usually produce smaller, more focused diffs.

Add a script such as "test:visual": "playwright test" to package.json, then run:

npm run test:visual

3. Generate and review baselines

On a deliberate baseline-generation run, create the missing screenshots, inspect them, and commit the approved images alongside the code. For Playwright, baseline updates can be generated with:

npx playwright test --update-snapshots

That command updates snapshots, so do not run it as the normal CI check. In CI, run the tests without the update flag, retain the failure output, and make the reviewer inspect the actual/expected/diff images before approving any new baseline. Keep baseline edits in the same pull request as the intentional UI change whenever possible.

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.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

4. Make CI failures readable

Run the visual suite after Storybook is available and ensure the CI job preserves Playwright’s test output and screenshot artifacts when a comparison fails. A useful failure shows which story changed and provides the expected image, the actual capture, and a diff. Without these artifacts, a developer may know a test failed but lack enough information to decide whether the UI or the test environment changed.

Keep screenshots stable enough to be useful

Pixel comparisons are sensitive to the environment as well as the interface. A successful workflow controls likely sources of noise and treats the resulting diff as evidence for review, not an automatic release decision.

Standardize the rendering environment

  • Use the same browser version, operating-system or container image, installed fonts, viewport, and device scale factor for baseline generation and CI.
  • Use deterministic story fixtures. Avoid live APIs, current-time labels, randomized content, and state that changes between runs; provide fixed data and explicit states instead.
  • Wait for fonts and relevant images to load before capture. For pages with asynchronous content, wait on a meaningful selector or application-ready signal rather than an arbitrary short delay.
  • Disable animations or freeze time-dependent behavior where it affects the pixels. If an animation itself is under test, give it a deterministic starting point and capture timing.

Choose coverage and thresholds deliberately

Start with representative stories for high-risk components and layouts, then expand where UI risk justifies the maintenance cost. Capturing every story can be wasteful if many stories are unstable or visually redundant. A threshold can reduce noise from tiny rendering differences, but a permissive threshold can also hide real changes; calibrate it against reviewed diffs in your own environment.

Visual assertions are particularly useful for catching layout, appearance, color, text, and state changes. A 2026 preprint analyzed 189 VRT-flagged issues and categorized them as Layout (39.7%), Appearance (27.5%), Color (14.8%), Text (9.5%), State (6.9%), Test (6.3%), and Image (4.2%). Those percentages describe the paper’s analyzed issue set, not the distribution of all UI defects. The authors also reported a 3.8-times longer median resolution time for their VRT-related pull-request group than for an image-only comparison group; that is an observed association in the study, not evidence that visual tests cause slower resolution. The practical lesson is to make triage and diff review part of the workflow, not to infer that a particular tool will make it faster. Read the paper’s abstract and scope.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

  • Every screenshot changes in CI: compare local and CI browser, OS/container, fonts, viewport, and scale factor. Align them before raising a threshold.
  • Only text or icons shift: check whether web fonts or icon assets finished loading before capture. Wait for the relevant assets, and ensure CI has the same font files.
  • Captures show loading placeholders: the story may depend on async data or a delayed render. Replace external dependencies with controlled fixtures and wait for a component-ready condition.
  • Tests time out: confirm Storybook started at the expected URL and that the selected story ID resolves. If many stories run in parallel or CI has limited memory, reduce workers; Storybook identifies large story counts and low RAM as possible causes of Test Runner timeouts.
  • Diff artifacts are missing: configure the CI provider to retain Playwright reports and failure output, and confirm the test runner writes artifacts to a directory the job uploads.
  • Baseline update unexpectedly rewrites many images: do not accept the batch blindly. Check for a browser, font, or global style change, then regenerate only in a controlled environment and review each affected story.

DIY versus a hosted visual-testing service

Self-managed Playwright gives the team control over capture and storage, but it also means maintaining CI browser setup, diff artifacts, baseline acceptance, and a usable review process. A hosted visual-testing service may centralize review and reduce some integration work; verify its framework support, rendering environment, access controls, and image retention before sending it your stories.

Decision area DIY Playwright and managed baselines Hosted service
Baseline ownership Your team chooses storage, thresholds, and update approvals. The service may provide centralized review and baseline workflows; check the exact process.
Setup and maintenance Your team configures browser, Storybook server, capture, diff, and CI artifacts. An addon or CLI may reduce integration work; verify framework and version compatibility.
Rendering consistency You maintain the browser and CI environment. Check how captures run and whether browser versions are controlled.
Cost Software may be open source, but engineering and CI time still have a cost. Check the current usage metric, limits, storage, seats, and plan terms.
Data and security Artifacts remain in the infrastructure you choose. Verify where stories and images are uploaded and how long they are retained.

Argos as one hosted option

Argos is one service with a Storybook addon. In a vendor-authored guide dated July 30, 2026, Argos says the addon captures stories during Vitest or Test Runner runs; the same guide quotes $0.0015 per Storybook screenshot and up to 5,000 screenshots per month free. Those are Argos’s published claims in that dated guide, not an independently verified benchmark or a guarantee of current pricing. Check the Argos guide and its current terms before making a cost decision.

Or skip the browser setup

If you need clean screenshots of a Storybook URL or other web page without maintaining your own capture browser, ScreenshotNeo is a screenshot API and MCP server. One GET request returns PNG, JPEG, WebP, or PDF. It accepts consent banners like a visitor and removes 60+ known consent platforms, newsletter popups, and chat widgets before capture; those steps can be disabled. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. Its MCP tools let AI agents take screenshots, retrieve page information, and capture PDFs.

For a direct image of a published Storybook URL, use this cURL request; replace the target URL with your deployment’s story URL. API options and parameters are documented at ScreenshotNeo’s API docs.

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.
curl -G "https://api.screenshotneo.com/v1/shot" 
  -d access_key=YOUR_API_KEY 
  --data-urlencode url=https://your-storybook.example.com/iframe.html?id=components-button--primary&viewMode=story 
  -o shot.webp

ScreenshotNeo is a capture endpoint, not a replacement for an approved visual baseline, image-diff policy, or pull-request review. You still need to decide what changes are acceptable. Free use includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 screenshots. Sign up for 1,000 free screenshots a month, with no card required.

Frequently asked questions

Can Storybook’s visual-testing panel run without Chromatic?

Storybook’s documented native visual-testing workflow uses the Chromatic addon and account. For a Chromatic-free setup, run your own capture-and-diff workflow or choose another service.

Should I use Storybook’s Test Runner or Vitest?

Follow the current Storybook recommendation for your framework: its docs say the Test Runner has been superseded by the Vitest addon and recommend Vitest for Vite-powered Storybook frameworks. Direct Playwright screenshot tests are a separate option.

Are visual screenshots a substitute for component tests?

No. Screenshot comparison detects rendered visual differences; behavioral tests should still check interactions, accessibility expectations, and application logic that an image cannot establish.

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.