Guide20 min read

Storybook and visual testing: Why testing isolated components is not enough

Storybook has become the standard for documenting and testing UI components. But for visual testing, testing isolated components is not enough.

Contents
  1. Key Takeaways
  2. Storybook: The Tool Everyone Uses (and Rightly So)
  3. Storybook Visual Testing Tools: The Landscape
  4. The Fundamental Problem: The Gap Between Component and Page
  5. The Right Strategy: Components AND Pages
  6. Delta-QA: Visual Testing of the Pages Your Users See
  7. The Visual Testing Pyramid: Three Levels, Not Two
  8. Comparison Table
  9. FAQ
  10. Conclusion: Complete Visual Coverage Requires Two Levels

All your component visual tests are green, and yet the home page is broken in production: a card with an overly long title overlaps the neighboring block. This scenario is common when visual coverage stops at Storybook. Chromatic, Loki, and Percy capture isolated stories, not the pages your users actually see. This article reviews these three popular tools, explains why component testing isn't enough, details the cases where testing assembled pages becomes essential, and proposes a three-level strategy (component, section, page), with a comparison table, a breakdown of what to test at each level, and a concrete example CI setup.

Key Takeaways

  • Storybook has become the standard tool for documenting, developing, and testing UI components in isolation: and deservedly so
  • The visual testing tools built into Storybook (Chromatic, Loki, Percy) capture screenshots of isolated components, not of assembled pages
  • The most dangerous visual regressions happen in the assembly of components: the interaction between layout, content, and real context
  • A complete visual testing strategy combines Storybook for components and a framework-agnostic tool for full pages

All your components pass their Chromatic tests. Every button, every card, every field displays perfectly in isolation. And yet the home page is broken in production: a card with an overly long title overlaps the neighboring block, the header covers the content. No component test saw anything: because the bug isn't in a component, it's in their assembly. This is the blind spot of visual testing based on Storybook alone.

Visual testing means verifying that a software's user interface displays in line with the expected visual specifications, by comparing reference screenshots with the current state of the application.

Storybook has won. If you develop UI components in 2026, there is a strong chance you use Storybook: or that you have at least considered it. With more than 84,000 stars on GitHub, official support for React, Vue, Angular, Svelte, Web Components, and many more, Storybook has established itself as the de facto standard for developing components in isolation.

And naturally, when teams look for a visual testing solution, they turn to the Storybook ecosystem. Chromatic, created by the Storybook maintainers themselves, is the most obvious choice. Loki offers an open-source alternative. Percy (BrowserStack Visual Reviews) offers a Storybook integration: all three detailed in our comparison of visual testing tools 2026.

These tools work. They capture screenshots of your stories and detect visual changes between builds. But they all share a fundamental limitation that nobody wants to hear: they test components in isolation, not the pages your users actually see.

This article will defend a position some will find iconoclastic: Storybook is an excellent development tool, but visual testing based on Storybook alone gives a false sense of security. For real coverage, you need to test assembled pages: and that is exactly what Storybook doesn't do.

To compare tools on verifiable criteria: the best Applitools alternatives.

Storybook: The Tool Everyone Uses (and Rightly So)

Before criticizing the limits of visual testing through Storybook, let's give it its due. Storybook solves a real problem, and it solves it well.

Development in Isolation

Developing a UI component in the context of your application means navigating an ocean of dependencies. Does your Button component work correctly in all its variants (primary, secondary, danger, disabled)? To check it in your application, you have to navigate to the page that uses it, find an application state that displays the variant you want to test, and hope the development data matches the case you want to verify.

Storybook cuts this Gordian knot. Every component has its stories (predefined instances with specific props) that you can view instantly, with no dependency on the rest of the application. You see your Button in primary, secondary, danger, disabled mode, with short text, with long text, with an icon, without an icon: all in a dedicated interface.

Living Documentation

Storybook is not just a development tool. It is also a documentation tool. Your stories become the living documentation of your design system. Designers can check that components match the mockups. Product managers can explore the available variants. New developers can understand the existing components without reading the source code.

This documentary value is real and valuable. No static README replaces an interactive instance of each component with its configurable props.

Addons and the Ecosystem

Storybook's ecosystem is rich. The a11y addon checks the accessibility of your components. The viewport addon tests components at different screen sizes. The interactions addon lets you simulate user interactions. And the visual testing addons (Chromatic, Loki, Percy) capture screenshots to detect regressions.

This ecosystem reinforces Storybook's dominant position. The more tools are integrated, the more reasons there are to adopt it, and the harder alternatives become to justify.

Storybook Visual Testing Tools: The Landscape

Let's review the main options for visual testing through Storybook, with their strengths and limits.

Chromatic: The Official Choice

Chromatic is a cloud service created by the Storybook maintainers. How it works is straightforward: on every build, Chromatic captures screenshots of all your stories in a cloud browser and compares them with the previous captures. Differences are presented in a review interface where you can approve or reject each change.

Chromatic's strengths are undeniable. The integration with Storybook is native: no complex configuration. The infrastructure is managed: no browsers to install, no capture servers to maintain. The review interface is excellent, with side-by-side comparison, a slider, and a highlighted view of differences. Composition support lets you test components from several Storybooks in a single review.

Chromatic: Pricing and the Fundamental Limit

Chromatic's pricing model is based on the number of snapshots per month. The free plan offers 5,000 snapshots, which is enough for a small project. But for a mid-sized design system with 200 components, 3 viewports, and 5 states per component, you reach 3,000 snapshots per build: and you exhaust your quota in under two builds. Paid plans start at 179 dollars per month (Starter, as of 06/2026) and climb quickly with volume.

Chromatic's fundamental limit is that it tests what you put in Storybook, not what your users see in your application. If your stories don't reflect the real data, real layouts, and real contexts of your application, Chromatic's captures validate a fictional state of your components.

Loki: The Open-Source Alternative

Loki is an open-source visual testing tool for Storybook. It captures screenshots of your stories using headless Chrome or Docker, and compares the images locally. No cloud service, no subscription.

Loki has the cost advantage: it is free. But that freedom comes at a maintenance price. You manage the capture infrastructure yourself: installing headless Chrome, managing system fonts, configuring Docker for reproducibility. Rendering differences between your local machine and your CI can generate persistent false positives. The review interface is basic compared with Chromatic's: no built-in team collaboration, no comments on changes, no approval history.

And above all, Loki shares the same limitation as Chromatic: it tests components in Storybook, not in your application.

Percy (BrowserStack Visual Reviews)

Percy, now integrated into BrowserStack under the name Visual Reviews, offers a Storybook integration through a dedicated package. It captures stories in the BrowserStack cloud and offers a review interface with team collaboration.

Percy brings the power of the BrowserStack infrastructure: multi-browser testing (Chrome, Firefox, Safari), multiple resolutions, and a stable capture environment. Integration with CI/CD tools is mature.

Percy's pricing is based on the number of screenshots: a free tier of 5,000 screenshots/month that suits small projects, then pay-as-you-go plans that climb with volume (price grid on browserstack.com/percy).

Like Chromatic and Loki, Percy via Storybook tests components in isolation. Percy also has a "page" mode that can capture entire pages, but that feature is separate from the Storybook integration and requires additional configuration scripts.

The Fundamental Problem: The Gap Between Component and Page

This is where things get interesting. The three tools we have just described share an implicit assumption: if every component displays correctly in isolation, the assembled page will display correctly too.

That assumption is false. And it is the heart of the problem.

Components Don't Live in Isolation

A component in Storybook exists in a controlled environment. It has a white background (or the background color from your Storybook configuration). It has fixed margins. It receives props that you define manually. It has no neighbors pushing it, resizing it, or overlapping it.

In your real application, that same component lives in a complex visual ecosystem. It sits in a flex or grid container that imposes size constraints on it. It sits next to other components that influence its positioning. It inherits global styles (CSS reset, variables, fonts) that may not be the same as in Storybook. It receives real data that may be longer, shorter, or in an unexpected format compared with the props of your stories.

Composition Regressions

The most pernicious visual regressions don't happen in individual components. They happen in the assembly.

A Card component that displays perfectly in Storybook with a 30-character title can break the layout when it receives a 120-character title on the real page. Storybook will never show you that case, unless you explicitly created a story with a very long title: and in most design systems, those "edge case" stories don't exist.

A Header component with a fixed height in Storybook can overlap the main content when used in a layout with a notification banner above it. Storybook doesn't know about this banner, because the Header is tested in isolation.

A Modal component that displays perfectly centered in Storybook can be partially hidden on mobile when the virtual keyboard is open and the viewport is reduced. Storybook doesn't simulate the virtual keyboard.

A Sidebar component with the right width in Storybook can crush the main content when both are in a flex layout and the main content contains fixed-width elements. The conflict doesn't exist in Storybook, because the Sidebar and the main content are never tested together.

The Rendering Context

Beyond spatial composition, the rendering context plays a decisive role in how components look. Inherited styles, theme CSS variables, global media queries, loaded fonts, the user's system preferences (light/dark mode, text size, reduced motion): all of this affects the rendering of your components.

Storybook tries to reproduce this context through decorators and global parameters. But the reproduction is rarely 100% faithful. The system fonts on your development machine are not the same as those in your user's browser. Storybook's CSS variables are not necessarily in sync with those of your application. Media queries in Storybook emulate the viewport size, but not the device characteristics (pixel density, orientation, color capabilities).

The result: a component can pass all its visual tests in Storybook and show a different visual rendering (sometimes subtly, sometimes dramatically) in your real application.

The Right Strategy: Components AND Pages

The position defended in this article is not that Storybook is useless for visual testing. It is that Storybook alone is insufficient. The right strategy combines two levels of visual testing.

First Level: Components in Storybook

Use Storybook and a tool like Chromatic to verify the components of your design system in isolation. This is valuable for the following reasons.

You validate every variant of every component under controlled conditions. You detect regressions in fundamental components (buttons, inputs, cards, modals) before they spread to pages. You keep up-to-date visual documentation of your design system.

This first level covers the "microscopic" regressions: a color change in a button, a modified padding in an input, an icon that changed size.

Second Level: Assembled Pages in the Browser

Use a framework-agnostic visual testing tool like Delta-QA to capture your real pages in a real browser. This second level covers the "macroscopic" regressions: a layout that breaks, a component that overlaps another, content that overflows, a page that scrolls horizontally, a header that disappears on scroll.

This second level is irreplaceable. No Storybook-based tool can provide it, because it requires testing the page in its real context, with real data, the real layout, and the components assembled.

Complementarity in Practice

Concretely, your CI/CD pipeline triggers both levels in parallel. Chromatic (or the Storybook tool of your choice) captures your stories and reports component changes. Delta-QA captures your real pages and reports layout changes.

If a CSS change affects a button, Chromatic detects it in the button's story, and Delta-QA detects it in all the pages that use that button. You see the problem at the component level AND at the page level.

If a layout change affects the page composition without modifying any individual component, Chromatic sees nothing (all components are identical in isolation), but Delta-QA detects the change in the assembled page. This issue is similar to that of visual bugs in production that go unnoticed without suitable monitoring.

It is this complementarity that makes up a complete visual testing strategy.

Delta-QA: Visual Testing of the Pages Your Users See

Delta-QA is a no-code visual testing tool that captures your pages in a real browser and compares screenshots between versions. It doesn't replace Storybook or Chromatic. It complements what these tools can't do.

No Stories to Keep in Sync

The biggest hidden cost of Storybook is story maintenance. Every new component requires new stories. Every props change requires a story update. Every new use case requires an additional story. And if the stories aren't up to date, visual tests validate an obsolete state of your components.

Delta-QA doesn't have this problem. It captures your real pages: those that are already there, with their current content and layout. No stories to write, no dummy data to maintain, no synchronization between your application and a separate test environment.

Reality vs. Idealization

Your Storybook stories show your components under ideal conditions: titles of reasonable length, images at the right ratio, well-formatted data. Your real application receives 200-character titles created by a rushed user, images uploaded at 4000x3000 pixels, data with special characters and mixed languages.

Delta-QA captures that reality. If a title that is too long breaks your layout in production, the visual test detects it: even if the Title component passes all its Chromatic tests with its perfectly calibrated story titles.

Effortless Coverage

For a 50-page site with 3 viewports, Delta-QA produces 150 visual captures on every deployment. Getting the same coverage with Storybook would require creating stories for every page: which amounts to recreating your application in Storybook, an effort nobody actually makes.

Most Storybooks cover the design system components (buttons, forms, cards, navigation), not the application pages (home, dashboard, profile, checkout). That makes sense: Storybook is designed for components. But it is insufficient for visual testing.

Comparing the Tools: Where Each One Excels

Rather than declaring a universal winner, here is what each tool does best.

Chromatic and Loki: Design Systems and Limited Budgets

Chromatic excels for design systems. If you maintain a design system shared across several applications, Chromatic is probably the best choice for visual testing of components. Its native integration with Storybook, its composition handling, and its collaborative review interface make it the most polished tool for this use.

The trade-off: cost climbs quickly with volume, and coverage stops at the components in Storybook. For assembled pages, you need a complement.

Loki excels for limited budgets. If you want component visual testing with no service cost, Loki is the answer. The tool is free and runs locally or in your CI. You sacrifice the comfort of the review interface and the stability of the infrastructure, but you have no monthly subscription.

The trade-off: maintaining the infrastructure (fonts, browsers, Docker) can consume more time than the cost of a cloud service. And like Chromatic and Percy, Loki only covers components in Storybook.

Percy and Delta-QA: Multi-Browser and Real Pages

Percy excels for multi-browser testing. If you need to check the rendering of your components in Chrome, Firefox, and Safari, Percy (BrowserStack Visual Reviews) is the most solid choice. The BrowserStack infrastructure gives access to real browsers on different operating systems, which goes beyond Chromatic's simulation.

The trade-off: the price is high for mid-sized teams, and the Storybook mode remains limited to components in isolation.

Delta-QA excels for real pages. If you want to check what your users actually see (assembled pages, with real data, in the real context of your application), Delta-QA is the tool missing from your visual testing stack. It requires no Storybook, no scripts, and no framework-specific configuration.

The ideal complementarity: use Chromatic (or Loki, or Percy) for your components, and Delta-QA for your pages. Both levels together form complete visual testing coverage.

When Storybook Alone Really Isn't Enough

Some scenarios make visual testing of full pages non-negotiable, beyond a simple "nice to have".

Multi-Tenant Apps and CMSs: The Content Storybook Doesn't Show

Multi-tenant applications. If your application adapts its appearance to the tenant (white label, custom theme, customer logo), your Storybook stories can't cover all the variants. Delta-QA can capture the same page with different tenant contexts to verify that every customization displays correctly.

Applications with a CMS. If your content is managed by a CMS and non-technical teams create and edit the content, the data in Storybook never reflects the real content. An article with a portrait image instead of the expected landscape format, a title in a language with wider characters, a content block with a nested table: these real cases can break your layout, and Storybook never shows them.

E-Commerce and Migrations: The Unplanned Combinations

E-commerce applications. Product pages are a critical visual testing ground. The number of images, the length of the description, the presence or absence of promotions, product variants, customer reviews: every combination can affect the layout. Storybook can simulate some of these combinations, but not all. And the problematic combinations are often the ones you didn't think to include in your stories.

Framework or design system migrations. When you migrate your application from one design system to another, or from one major framework version to another, visual regressions are numerous and often subtle. Visual testing of full pages gives you a before/after comparison that covers the whole surface of your application: not only the components you thought to update in Storybook.

The Visual Testing Pyramid: Three Levels, Not Two

So far, we have set two levels against each other: isolated components and assembled pages. That is a good starting point, but the reality of a mature design system is more nuanced. If you know the classic test pyramid (unit tests at the base, end-to-end at the top), you can transpose the same principle to visual testing, with an intermediate level that is often forgotten.

At the base: isolated component tests. Numerous, fast, targeted. This is the developer's granular safety net: every Button, every Input, every state in Storybook. They render in a few milliseconds and, when one fails, you immediately know which component and which variant are at fault.

In the middle: section or composition tests. Groups of components assembled in a partial context: for example a full header with its navigation and its search bar, or a product card with its action buttons and its promo badge. This level captures proximity interactions (a dropdown menu that opens under a fixed header, a tooltip that overflows its container) without the cost of an entire page. It is the level most often missing from strategies based on Storybook alone.

At the top: full page tests. Fewer, slower, but infinitely more representative of what your users see. This is Delta-QA's domain.

Advantages and Limits of Each Level

Level Advantages Limits
Isolated component Speed (rendering in milliseconds); diagnostic granularity; combinatorial coverage of all variants; backend independence (no API to mock) Sees neither neighbors, nor the parent layout, nor global styles; misses interactions between components
Section / composition Captures proximity interactions; faster than a whole page; diagnosis is still targeted Doesn't reproduce the full page context or the real data
Assembled page Reflects the real user experience; detects layout conflicts, the global CSS cascade, responsive behavior, and dynamic content Harder diagnosis (finding the faulty component); slower; more sensitive to false positives

If you are starting from zero and must choose a single level, start with pages: a visual test on your ten most critical pages (home, product, checkout, account) protects you against most regressions, and stakeholders immediately understand the impact of a page capture that changed.

What to Test at Each Level: The Prioritization Grid

Testing everything at every level is unrealistic and costly. Here is a concrete grid for deciding what to test where, particularly useful for a design system shared across several applications.

At the component level (Storybook + Chromatic), prioritize:

  • Components used on more than five pages: Button, Input, Card, Modal, Table. A regression on them spreads everywhere, so the return on investment of the test is maximal.
  • Components with many states: a form component with twenty variants (normal, hover, focus, disabled, error, long content, empty content) deserves an isolated test that covers the combinatorics a page will never display simultaneously.
  • Frequently modified components: the more a component changes, the more likely it is to introduce a regression, and the more profitable the granular safety net becomes.

Conversely, simple and rarely modified components can be excluded without much risk.

Page-Level Priorities

At the page level (Delta-QA), prioritize:

  • Conversion pages: checkout, signup, pricing. A visual regression there has a direct business impact.
  • High-traffic pages: home, dashboard, the most visited product pages.
  • Complex layouts: pages that assemble many components in a grid, where composition conflicts are most likely.

The Concrete CI Setup

In practice, you plug both levels into your pipeline, triggered by different conditions. Run Storybook + Chromatic on the pull requests that touch packages/ (your component library): that is where component regressions appear. In parallel, run Delta-QA on your critical pages at every deployment, to catch the composition regressions Chromatic doesn't see. The two levels run independently and complement each other: Chromatic tells you which component changed, Delta-QA tells you which page broke.

Comparison Table

Criterion Chromatic (Storybook) Delta-QA
What is tested Stories: isolated components Assembled pages in the real application
Dependence on Storybook Native integration with Storybook No Storybook, no scripts, no framework-specific configuration
Data That of the stories, sometimes a fictional state Real data, real application context
CMS-managed content Never shown by Storybook Captured as it displays
Diagnosis Says which component changed Says which page broke
Pricing model Snapshots per month, 5,000 free, paid plans from 179 dollars per month (Starter, as of 06/2026) Free plan sufficient for small projects
Dynamic content Story data doesn't reflect the real content Exclusion zones, CSS animations disabled, fonts loaded before capture
Setup Native integration, managed infrastructure Under thirty minutes, without modifying Storybook or your code
Best use Design systems shared across several applications Critical pages: checkout, signup, pricing, home

FAQ

Do I have to abandon Storybook if I use Delta-QA?

No. Storybook and Delta-QA are complementary, not competitors. Storybook remains an excellent tool for developing, documenting, and testing your components in isolation. Delta-QA adds the coverage Storybook lacks: visual testing of assembled pages in your real application. The recommended approach is to use both, in parallel in your CI/CD pipeline, to cover both individual components and full pages.

Chromatic is created by the Storybook team: isn't that the best possible integration?

Chromatic's integration with Storybook is indeed excellent. It is the best tool for testing your components in Storybook. But "the best integration with Storybook" doesn't mean "the best visual testing coverage". Chromatic tests what Storybook shows, not what your application displays. For regressions that happen in the assembly of components, in the page context, or with real data, you need a tool that tests the real page.

Does visual testing of full pages generate a lot of false positives?

With the right settings, no. Delta-QA lets you configure exclusion zones for dynamic content (dates, counters, real-time data), disable CSS animations, and wait for fonts to finish loading before capture. On a site whose content is mostly static or predictable, false positives are rare. On an application with a lot of dynamic content, the effort of configuring exclusion zones is an initial investment that reduces noise over the long term.

How much does a complete visual testing strategy (Storybook + pages) cost?

The cost depends on your tool choices. For the component level, Loki is free (but requires maintenance). Chromatic starts at 179 dollars per month (Starter, as of 06/2026). Percy offers a free tier of 5,000 screenshots/month, then bills by usage (price grid on browserstack.com/percy). For the page level, Delta-QA starts with a free account, no credit card. The combination of Loki (free) and Delta-QA (free account, no credit card) offers complete coverage at a controlled cost. The question is not the cost of the strategy, but the cost of an undetected visual regression in production.

Can my Storybook stories serve as documentation for page visual testing?

Your stories document the behavior and appearance of your individual components, which remains useful independently of page visual testing. When Delta-QA detects a visual regression on a page, your Storybook stories help you identify which component is responsible. That is complementarity in action: Delta-QA tells you "this page changed here", and Storybook helps you understand why by showing you the component concerned in its different variants.

How do I convince my team to add page visual testing on top of Storybook?

The most convincing argument is concrete: show a real visual regression that Storybook wouldn't have detected. A layout broken in production, a component that overlaps another on mobile, a page whose content overflows its container. These regressions exist in every project: showing one is enough to justify adding page visual testing. Delta-QA is set up in under thirty minutes and requires no change to your Storybook or your code: it is a pure addition, frictionless.

Conclusion: Complete Visual Coverage Requires Two Levels

Storybook has transformed how teams develop and document UI components. It is an indispensable tool in every front-end developer's toolbox. And the visual testing tools built into Storybook (Chromatic, Loki, Percy) bring real value by detecting regressions in individual components.

But components don't live in isolation. They live in pages, surrounded by other components, with real data, in constrained layouts, under the influence of global styles and rendering contexts that Storybook doesn't reproduce. The most dangerous visual regressions (those that affect the user experience) happen at this level of assembly.

For complete visual testing coverage, you need two levels. The first level tests components in Storybook. The second level tests pages in the browser. Both are necessary. Neither is enough alone.

Delta-QA is designed for this second level. It captures your real pages, in a real browser, with your application's real rendering. No scripts, no stories, no dependence on a specific framework. It is the natural complement to your Storybook: the missing piece that turns your component visual testing into complete visual testing.

Try Delta-QA