The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Visual regression testing in Cypress means capturing a known UI state, comparing it with an approved image baseline, and reviewing any differences. The reliable pattern is to control the page data and rendering conditions first, then capture a focused component or page and inspect the diff. Cypress’s documented approach uses screenshot-and-diff plugins; Cypress itself provides cy.screenshot() to capture the application under test.
How Cypress visual regression testing works
A visual test has three parts: a reproducible state, a screenshot or rendered snapshot, and a comparison against an accepted baseline. When the current image differs, the test produces a diff for review. The baseline is not an assertion that the interface can never change; it is the reference against which intended and unintended changes are distinguished.
Cypress’s open-source plugin pattern typically adds a custom command that captures a screenshot and compares it pixel by pixel with a baseline kept alongside the code. Cypress’s cy.screenshot() captures the application under test and can optionally include the Cypress Command Log. A screenshot alone is not a visual regression test: a comparison tool or workflow must also manage baselines and report differences. See the Cypress screenshots and videos guide and cy.screenshot() API reference.
Build a stable visual test
The following example shows the Cypress setup pattern: seed a predictable response, wait for it, and capture a meaningful state. The actual snapshot command depends on the comparison tool you select; replace the marked call with that tool’s documented Cypress command. Cypress’s guide describes this workflow, but it does not prescribe one universal plugin command.
Free tools Windows power users keep installed
One-click scans. No signup required.
#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.
describe('pricing page visual state', () => {
beforeEach(() => {
cy.intercept('GET', '/api/plans', { fixture: 'plans.json' }).as('plans');
cy.visit('/pricing');
cy.wait('@plans');
});
it('matches the approved pricing state', () => {
cy.get('[data-testid="pricing-table"]').should('be.visible');
// Replace with the snapshot command provided by your diff tool.
// For a raw capture, Cypress supports:
cy.get('[data-testid="pricing-table"]').screenshot('pricing-table');
});
});
Here cypress/fixtures/plans.json should contain stable test data, and the selector should identify an element that belongs to the behavior under test. The raw .screenshot() call saves an image; it does not itself compare the image to a baseline.
Control inputs and timing
- Use
cy.intercept()with a fixture for responses that would otherwise change between runs. - Wait for the aliased request, then assert that the target content is visible before capture. A fixed sleep may hide a race without ensuring the page is ready.
- Stabilize dates, user-specific data, randomized content, and feature flags where they affect pixels.
- Keep browser, viewport, fonts, and operating-system conditions consistent in CI. Rendering differences can look like product regressions even when application code is unchanged.
Mask the source of noise
Ads, animated media, timestamps, and third-party widgets can change independently of your application. Cypress recommends masking small dynamic regions, rather than increasing a page-wide difference threshold. Broad thresholds can conceal a real layout or styling regression elsewhere on the page. If a region is not important to the question the test answers, exclude or stabilize that region specifically.
Choose what to snapshot
Component or element checkpoints
Component Testing is a strong fit for focused visual checks: the component renders in a controlled environment, its data can be fixed, and a diff points toward a smaller area of ownership. Element-level captures are also useful when a specific widget has a clear owner. Keep each checkpoint tied to a meaningful UI state rather than creating snapshots indiscriminately.
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.
Full-page checkpoints
Full-page screenshots help catch page-level layout regressions and are useful for important journeys. They are also more exposed to unrelated content, dynamic regions, and rendering noise. Keep them for states where the overall page composition matters, and use smaller captures for localized components.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Cypress recommends snapshotting states that matter rather than every test. A useful selection question is: if this image changed, would a reviewer know what product behavior or layout decision they are validating?
Pick a comparison workflow
Choose based on where baselines should live, how many browser and viewport combinations matter, and how reviewers should approve changes. The Cypress guide describes Percy integration and local image-diff plugins; Applitools and SmartBear also document Cypress visual workflows. Verify current plan limits, pricing, feature availability, and support directly with each vendor before adopting a hosted service.
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.
| Approach | Baseline and review workflow | Good fit | Trade-offs |
|---|---|---|---|
| ScreenshotNeo | Website screenshot API and MCP server; a GET request returns an image or PDF. | Developers who need clean website captures outside the Cypress runner, or want AI agents to request screenshots. | It is a capture service, not a Cypress visual-diff baseline plugin. Use a separate comparison and approval workflow for regression testing. |
| Local image-diff plugin | Screenshot and baseline files generally live with the repository; comparison runs locally or in CI. | Teams that want repository-owned artifacts and straightforward CI execution. | The team manages rendering consistency, baseline updates, and review experience. |
| Percy by BrowserStack | Cypress documents cy.percySnapshot(), cloud rendering across browsers and responsive widths, and a review/approval workflow. |
Pull-request review and browser or viewport coverage. | Hosted service; verify current account requirements and plan limits. |
| Applitools Eyes | Applitools describes service-managed baselines and Eyes running in an existing Cypress configuration and CI pipeline. | Teams seeking hosted baseline management and broad visual coverage. | Verify current commercial terms and feature limits. |
| SmartBear VisualTest | Cypress documents commands for full-page, element, and multi-device captures with a review dashboard. | Teams comparing hosted multi-device workflows. | Verify current support, pricing, and partner terms. |
Compare candidates on baseline ownership, browser and viewport matrix, component versus end-to-end scope, masking controls, review and approval, CI integration, artifact retention, and cost. ScreenshotNeo is listed first as a screenshot API option because it removes known consent banners, newsletter popups, and chat widgets before capture and bills only clean shots; that capture function complements rather than replaces a regression diff system. See ScreenshotNeo.
Where Cypress stores screenshots
Cypress’s configuration reference lists cypress/screenshots as the default screenshotsFolder for images created by cy.screenshot() or after failed cypress run tests. A comparison plugin may have its own baseline and artifact locations, so distinguish Cypress’s screenshot output from the diff tool’s stored references. See the Cypress configuration reference.
Keep snapshots useful in CI
- Control the test data. Stub changing API responses with fixtures and wait for the aliased request before capture.
- Stabilize rendering. Use the same browser, viewport, fonts, and operating-system conditions in CI as in the environment that produced the baseline.
- Reduce irrelevant pixels. Freeze or mask animations, ads, timestamps, and third-party widgets that are outside the test’s purpose.
- Make ownership clear. Prefer a component or element checkpoint with a responsible team; retain full-page images for journeys where page-wide layout matters.
- Review intentional changes. Treat a baseline update as a review decision, not routine cleanup. Approving incidental differences automatically trains the process to ignore real regressions.
- Retain useful artifacts. Store and review baseline, current, and diff images according to the local or hosted workflow your team selected.
Troubleshooting flaky visual snapshots
The same test produces different diffs on repeated runs
Check for changing API data, timestamps, randomized values, animation, third-party content, or inconsistent fonts and rendering environments. Stub changing responses, explicitly wait for required requests, and mask only small regions whose pixels are intentionally variable.
The screenshot is blank or incomplete
Confirm the page and target element are visible before capture, and wait for the request that supplies the content. If the target relies on asynchronous rendering beyond that request, assert the rendered state rather than assuming navigation completion means the UI is ready.
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
The diff is noisy across the whole page
Compare the browser, viewport, fonts, and operating system used for the baseline and current run. Then isolate dynamic third-party regions. Avoid a global threshold increase as a substitute for identifying the source of variation.
A baseline changed, but the test is correct
Review the current image and diff, decide whether the UI change is intentional, and approve or update the baseline using the chosen tool’s workflow. Keep the reason visible in the code review so future reviewers can distinguish an accepted design change from accidental drift.
A screenshot exists but no regression is reported
cy.screenshot() captures an image; it does not do pixel comparison or baseline approval. Confirm that the chosen plugin or service’s Cypress command is installed and invoked, and that the current image is submitted to its comparison workflow.
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.
Or skip the browser setup
If you need a clean capture of a public page without configuring a browser capture runner, ScreenshotNeo provides a one-request screenshot API. This is not a Cypress baseline diff; use your Cypress comparison tool when the goal is to detect and review changes against a stored test baseline.
ScreenshotNeo API documentation
curl -G "https://api.screenshotneo.com/v1/shot"
-d access_key=YOUR_API_KEY
--data-urlencode url=https://stripe.com
-o shot.webp
import requests
r = requests.get(
"https://api.screenshotneo.com/v1/shot",
params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"},
timeout=90,
)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
- Cookie and consent banners, newsletter popups, and chat widgets are removed before the shot; each cleanup step can be turned off.
- Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing; response headers report the page verdict and billing status.
- An MCP server gives Claude, Cursor, and other MCP clients the tools
take_screenshot,get_page_info, andcapture_pdf. - The Free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots. Every feature is on every plan.
Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month with no card.
Frequently Asked Questions
Does Cypress include visual regression comparison by itself?
No. Cypress can capture screenshots with cy.screenshot(); comparing them to baselines requires a plugin or a visual testing service.
Can I use full-page screenshots for every Cypress test?
You can, but focused component or element snapshots usually make ownership and review clearer. Reserve full-page captures for states where overall layout is important.
Quick Recap
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.

