Visual regression testing catches unintended changes in how an interface looks by comparing a new screenshot with an approved baseline. Use it alongside functional tests: a test can confirm that a checkout button works while missing that a notification now covers it. The right workflow captures repeatable UI states, compares like with like, and sends differences for human review before updating a baseline.
What visual regression testing catches
A visual test checks rendered appearance, not just whether a control responds or a route loads. It can flag changes in layout, styling, text wrapping, or component placement that a logic-oriented assertion may not describe. Chromatic’s documentation uses the example of a checkout button obscured by a notification to illustrate why appearance checks complement behavior tests: Chromatic’s Storybook documentation.
A screenshot difference is a signal to inspect, not proof of a defect. Some changes are intentional, such as a redesigned button; others may be regressions or capture noise. The review step determines which is which.
How the workflow works
- Choose states to protect. Select component states represented by Storybook stories, or page states reached through browser tests. Include states that matter to users, such as a form with validation feedback or a menu opened.
- Capture under defined conditions. Keep the browser, viewport, theme, and other relevant capture settings consistent. Make sure required interactions have completed before capturing.
- Establish an approved baseline. Save or create the reference screenshot for each chosen state. Treat initial baseline creation as a reviewable setup step, not an automatic declaration that every pixel is correct.
- Compare new captures with the baseline. The test or service identifies differences between the current image and the approved reference.
- Review each difference. Investigate unexpected changes. Accept intentional design changes by updating the baseline only after review; do not approve every difference automatically.
Choose the test target: components or user journeys
Storybook stories for component states
Storybook’s visual-testing workflow treats stories as visual test cases: each story captures a component state for comparison with an earlier version. This approach is useful when a team wants to check isolated components and variants without exercising a full end-to-end journey. Storybook’s documentation describes its official Chromatic addon and specifies Storybook 7.6 or higher for the addon described there: Storybook visual testing.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minute#1 Best Overall
- 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.
Browser tests for pages and journeys
Browser tests make sense when the appearance to protect depends on a page-level state or an interaction sequence. For example, a test can navigate to a page, open a menu, and capture what the user sees there. With Playwright Test, the documented screenshot assertion is await expect(page).toHaveScreenshot(): Playwright screenshot comparisons.
These targets can coexist: stories cover component states, while end-to-end tests cover important composed page states. Choose them according to what must remain visually stable rather than trying to screenshot every possible state.
Use Playwright Test for local screenshot assertions
In an existing Playwright Test project, capture the page or component state you want to protect, then assert that it matches its expected screenshot:
Rank #2
- 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.
await expect(page).toHaveScreenshot();
Playwright’s documentation explains that if an expected screenshot does not yet exist, the initial run can create it. Review that generated baseline deliberately and keep it with the test artifacts your team uses for review. Subsequent runs compare captures against the expected image; investigate a failing comparison before changing the baseline.
For a useful assertion, navigate to a deterministic state before calling it: wait for the relevant content, complete interactions, and use a consistent viewport and theme. The exact setup depends on the page and your test environment. The comparison is meaningful only when the new capture and baseline represent the same intended state.
When a hosted visual-review workflow fits
A hosted service can capture screenshots, compare them with baselines, and present changes in a review workflow. Chromatic documents this workflow for Storybook and integrations with Vitest, Playwright, and Cypress. Its Playwright integration captures UI states during end-to-end tests, uploads page archives to its cloud service, and links results to review: Chromatic’s Playwright integration and Chromatic’s Storybook documentation.
Rank #3
- 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.
This is a vendor’s description of its own offering, not an independent market comparison. Decide between local assertions and hosted review by considering where baselines should live, how the team reviews changes, and how well the workflow fits existing tests.
Make captures comparable
Many apparent regressions are difficult to judge if the capture conditions differ. Chromatic documents snapshot variation by browser, mobile simulator or emulator, theme, viewport, and other configured options. It also documents that Storybook interaction-test captures wait for the play function to finish: Chromatic snapshot documentation.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →- Define state and viewport coverage. Select the browsers, viewport sizes, themes, and states that matter to your users. More variants can reveal more differences, but they also expand the set of captures the team must review.
- Finish interactions before capture. Ensure menus, validation, or other state changes have completed. In Chromatic’s documented capture process, snapshots follow a network-quiescent phase and can include an optional delay; when Storybook interactions are present, that delay follows them. This is Chromatic-specific behavior, not a universal timing rule for visual-testing tools.
- Keep the baseline intentional. A baseline is the comparison reference, not an unquestionable source of truth. Review a new or updated baseline as part of the change that introduces it.
Choose an approach for your team
| Approach | Best fit | What to weigh |
|---|---|---|
| Playwright screenshot assertions | Teams already using Playwright that want visual assertions inside browser tests. | Keep expected screenshots under deliberate review and make the test state repeatable. See Playwright’s documentation. |
| Storybook visual testing | Teams that want to compare component states and variants in isolation. | Stories define the tested states; the documented official Chromatic addon applies to Storybook 7.6 or higher. See Storybook’s visual-testing guide. |
| Hosted review, such as Chromatic | Teams that want cloud capture, baseline comparison, and a review workflow integrated with their test stack. | Chromatic documents Storybook, Vitest, Playwright, and Cypress support. Consider baseline location, integrations, review process, and current vendor terms. See Chromatic’s documentation. |
There is no neutral price comparison or ranking established here. Check current vendor terms directly if cost or usage limits will decide the choice.
Rank #4
- 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
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. It can return a screenshot or PDF with one GET request; it is useful when you need captures without setting up a browser in your own code. It is a capture service, not a substitute for a visual regression baseline and review workflow.
For example, save a screenshot of a target page with 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 and consent banners are accepted or removed before capture, and more than 60 known consent platforms, newsletter popups, and chat widgets can be removed; each of those steps can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers report the page verdict and billing status. ScreenshotNeo also provides an MCP server with take_screenshot, get_page_info, and capture_pdf tools for AI agents and MCP clients. The free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Common problems and how to address them
A new Playwright snapshot is created unexpectedly
Playwright documents that a missing expected screenshot can be created on the initial run. Treat this as baseline setup: inspect the generated image and approve it intentionally before relying on later comparisons. See Playwright’s screenshot documentation.
Best Value
- 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.
A screenshot changes even though the code did not
First check whether the capture conditions or UI state changed: browser, viewport, theme, or interaction timing can affect the rendered result. Confirm that the same state is reached and that interactions finish before capture. Snapshot dimensions and interaction timing are among the conditions described in Chromatic’s snapshot documentation.
A difference appears in an expected redesign
Inspect the changed area, confirm it matches the intended design, then update the baseline through your team’s normal review. Avoid accepting all changes wholesale; the documented Chromatic workflow distinguishes review and approval of visual changes: Chromatic’s Playwright documentation.
A test passes but the interface still looks wrong
Behavior assertions and screenshot comparisons detect different things. Add a visual check for the affected state, such as a notification overlaying a button, while retaining functional assertions for the button’s behavior. The distinction is illustrated in Chromatic’s Storybook documentation.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Quick Recap
Keep the review signal useful
- Protect states with meaningful user or product impact rather than capturing every incidental page variation.
- Make capture conditions repeatable and ensure state-changing interactions complete before comparison.
- Review changed regions in context; update a baseline only for intentional changes.
- Use screenshot checks alongside, not instead of, functional tests.
- Choose local or hosted review based on your existing test stack and the way your team wants to store and approve visual changes.
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.

