Component visual testing: the practice of automatically verifying the rendered appearance of a UI component (in isolation or in its application context), by comparing visual captures between a reference state and a current state, independently of the framework used to build it.
An opinion that will ruffle framework fans: your choice between React, Vue and Angular should have absolutely no influence on your visual testing strategy. The framework is an implementation detail: the end user does not know, and does not want to know, whether the button they click was rendered by React, Vue or Angular.
And yet teams systematically fall into the same trap: they choose their visual testing tools based on their framework. "We're on React, so we use Storybook + Chromatic." "We're on Vue, so we're looking for a Vue plugin for visual testing." "We're on Angular, so... we don't do visual testing."
This article dismantles that logic and explains why a framework-agnostic tool is the only approach that holds up in the long term.
The essentials on one page: what a no-code tool really automates and how it compares. No-code test automation.
The trap of framework-coupled tooling
The frontend ecosystem has an unhealthy obsession with coupling. You use React? Then you must use React Testing Library, React DevTools, React-specific linters, a React meta-framework (Next.js or Remix), and of course a visual testing tool that understands React.
This logic makes sense for unit testing components. When you test the internal logic of a React component (its props, its state, its callbacks), you need a tool that understands React's rendering model. That is the job of React Testing Library and it is perfectly appropriate.
But visual testing does not test a component's internal logic. It tests the visual result: what the user sees in the browser. And that visual result is HTML and CSS rendered by a browser engine. Whether that HTML was produced by React, Vue, Angular, or a PHP script from 2008, the browser couldn't care less. It receives DOM, applies CSS, renders pixels.
Visual testing operates at the pixel level, not at the framework level. Coupling your visual testing tool to your framework is like buying a camera that only works with houses built of brick: absurd, because the camera photographs the end result, not the building material.
React: the virtual DOM that makes visual testing more necessary, not easier
React has an architectural characteristic that makes visual testing particularly important: the virtual DOM with reconciliation. When React updates the interface, it does not modify the DOM directly: it computes a diff between the old and the new virtual DOM, then applies the minimal changes to the real DOM.
This mechanism is brilliant for performance. But it creates a specific risk for visual regressions.
Partial re-renders. When React re-renders a component, it may re-render only part of the tree. If a parent component changes state and that affects the props of a child component, the child is re-rendered. But if the re-render condition is subtle (a useMemo that no longer memoizes correctly, a context that changes too often), components can end up in an inconsistent visual state. The layout is structurally correct, but visually, a component displays stale data for a fraction of a second before updating.
CSS-in-JS problems. The React ecosystem has massively adopted CSS-in-JS solutions: styled-components, Emotion, Tailwind CSS (via className). Each approach has its own visual pitfalls. Styled-components can generate different class names between server and client (flash of unstyled content in SSR). Tailwind can produce utility classes that behave differently depending on load order. These bugs are invisible to functional tests but perfectly visible to the eye, and to a visual testing tool.
Server-Side Rendering. With Next.js and React Server Components, the initial rendering happens on the server. Client-side hydration can create temporary visual differences: a component that displays in a server state then "jumps" to its client state. These hydration mismatches are a visual nightmare that only a visual test can detect reliably, because the final HTML is technically correct in both cases.
Vue: the granular reactivity that hides visual pitfalls
Vue stands out for its granular reactivity system. Unlike React, which re-renders whole components, Vue tracks reactive dependencies at the level of each binding and only updates the parts of the DOM directly affected. It is elegant, performant, and a source of specific visual bugs.
Native transitions and animations. Vue builds a transition system into the framework itself: <Transition> and <TransitionGroup>. These transitions are tested functionally by Vue unit tests ("the element has the v-enter-active class during the transition"), but their actual visual rendering (timing, smoothness, intermediate state) is only verified by a visual test. A transition that "works" can be visually catastrophic: an element that flickers, an animation that stops halfway, a fade that produces a white flash.
Scoped Styles and CSS specificity. Vue encourages scoped styles via <style scoped> in Single File Components. The mechanism adds a unique data attribute to each component to isolate the styles. In theory, it is perfect. In practice, CSS specificity problems arise when global styles conflict with scoped styles, when a child component unintentionally inherits styles from its parent, or when an !important somewhere in the chain breaks the cascade. The browser renders CSS, not Vue. Specificity conflicts show up visually as incorrect colors, unexpected text sizes, or margins that disappear.
Conditional rendering with v-if vs v-show. v-if removes the element from the DOM entirely. v-show hides it with display: none. The difference is invisible functionally in most cases: the user does not see the element. But visually, a v-if that removes an element can cause a layout reflow, shifting adjacent elements. A v-show that hides an element keeps the reserved space (or not, depending on the context). These layout differences are potential visual regressions that only a screenshot comparison can catch.
Nuxt and Vue SSR. Like Next.js for React, Nuxt introduces SSR for Vue. The same hydration problems exist: a component can display differently on the server and on the client, creating a visual flash. And as with React, functional tests do not detect these differences because the final DOM is correct: it is the path to get there that is visually problematic.
Angular: the rigid structure that gives a false sense of security
Angular is the most structured of the three frameworks. TypeScript mandatory, built-in dependency injection, modules, services, pipes: everything is codified. This rigor gives Angular teams a false sense of visual security: "our architecture is solid, so our visual rendering is reliable". It is reasoning that confuses code structure with rendering quality.
Style encapsulation. Angular offers three style encapsulation modes: Emulated (the default), ShadowDom, and None. The Emulated mode simulates style isolation by adding attributes to the DOM, similar to Vue's scoped, with similar pitfalls. The ShadowDom mode uses the browser's real Shadow DOM, which isolates styles perfectly but creates inheritance problems: global styles (fonts, CSS variables) do not penetrate the Shadow DOM by default. The None mode disables all encapsulation, opening the door to global style conflicts. Each mode has its own potential visual regressions, and changing mode on an existing component can cause cascading visual changes.
Change Detection and zones. Angular's change detection system, based on Zone.js (or signals in recent versions), determines when the interface is updated. A component configured as OnPush only updates when its inputs change or an event is emitted. If a developer forgets to trigger change detection after an asynchronous modification, the component stays in a stale visual state. Functional tests that check the DOM at the end of the cycle find the right result. Users who see the interface during the cycle see an inconsistent state.
Angular Material and CDK components. Many Angular applications use Angular Material for UI components. These components have a specific visual rendering (dimensions, colors, animations) that depends on the configured theme. An Angular Material update can subtly change the rendering of a button, the spacing of a dialog, or the shadow of a card. Functional tests verify that the dialog opens. Visual testing verifies that it has the right look.
AOT builds and optimizations. Angular uses Ahead-of-Time (AOT) compilation in production. The compiled code can behave visually differently from development mode, notably because some tree-shaking optimizations can remove styles or animations they consider unused. Visually testing the production build, not the development build, is a necessity specific to Angular.
The common problem: framework migrations
Here is a scenario that perfectly illustrates why tool-framework coupling is dangerous. Your company decides to migrate from Angular to React. Or from Vue 2 to Vue 3 (which is almost a framework migration in itself). Or from React class components to React hooks (same framework, different paradigm).
If your visual testing tool is coupled to your framework (a specific Storybook plugin, a testing tool that instruments the virtual DOM), your visual coverage disappears during the migration. Exactly when you need it most. That is the supreme irony: visual regressions peak during a migration, and the tool meant to detect them stops working.
A framework-agnostic visual testing tool (one that tests the result rendered in the browser, not the framework that produces it) keeps working during and after the migration. Your baselines remain valid. Your coverage stays intact. The framework changes under the hood, but the expected visual result does not change (or if it changes, it is intentional and you want to detect it).
Multi-framework design systems: the ultimate case
Many organizations maintain a design system that must be consistent across several frameworks. The Button component must render the same whether it is implemented in React, Vue or Angular. The Modal component must display the same way everywhere. The color palette, typography and spacing must be identical.
How do you guarantee this consistency? Certainly not with a visual testing tool that only works with a single framework. If you use Chromatic (coupled to Storybook) for your React components and another tool for your Vue components, you are comparing captures made by different tools, with different configurations, potentially different rendering engines. The comparison is not reliable.
A framework-agnostic visual testing tool captures both implementations with the same engine, the same parameters, the same resolution. The comparison between the React implementation and the Vue implementation of the same component becomes a reliable pixel-to-pixel comparison. You can literally verify that your React Button and your Vue Button produce the same visual result, something impossible with tools coupled to each framework.
The Delta-QA approach: the browser as the source of truth
Delta-QA takes a firm position on this question: the framework should not be visible to the visual testing tool. Delta-QA does not know whether the page it captures was built with React, Vue, Angular, Svelte, PHP, or static HTML written by hand. And that is exactly the point.
The tool opens a browser, loads the URL, waits for the page to be rendered, captures a screenshot, and compares it to the baseline. The browser is the source of truth, not the framework, not the build tool, not the bundler. What the browser displays is what the user sees. What the user sees is what Delta-QA verifies.
This approach offers several concrete advantages.
Change framework without changing tool. Migrating from Vue 2 to Vue 3? Migrating from Angular to React? Adopting Svelte for a new project? Delta-QA keeps working, with the same baselines, the same configurations, the same workflows. Your investment in visual testing survives technology changes.
Test multi-framework applications. A micro-frontends architecture where some modules are in React and others in Vue? A legacy Angular application with new React components? Delta-QA tests the assembled result, not the individual parts. The visual consistency of the whole is verified, not just that of each piece of the puzzle.
Free yourself from vendor lock-in. A tool coupled to Storybook ties you to Storybook. A tool coupled to React ties you to React (or at least to the decision to test visually with React). Delta-QA ties you to only one thing: having a URL to test. It is the minimal possible dependency, and also the most stable: URLs will still exist when the trendy framework of 2028 is a memory.
Framework-specific visual testing considerations: what to watch for
Even if the visual testing tool must be agnostic, frameworks have visual specifics you need to know to configure your coverage effectively.
For React: watch for hydration mismatches in SSR/SSG (Next.js, Remix), flashes of unloaded styles with CSS-in-JS, re-renders that create intermediate visual states. Configure your captures after the full loading of fonts and dynamic styles. Use exclusion zones for content that depends on client state (counters, timestamps).
For Vue: watch for transitions and animations that can capture an intermediate state, differences between server and client rendering with Nuxt, scoped vs global style conflicts. Wait for transitions to finish before capturing. Test components with v-if and v-show in both their states (visible and hidden) to verify the impact on the layout.
For Angular: watch for differences between the dev build and the production build (AOT vs JIT), Shadow DOM components that do not inherit global styles, Angular Material updates that change the rendering of components. Always test the production build, not the development build. Check components after the first complete change detection cycle.
For all: wait for web fonts to fully load (flash of unstyled text is a cross-framework classic), stabilize animations and carousels before capturing, handle asynchronous content that arrives after the first render.
FAQ
Should I visually test my isolated components (Storybook) or my full pages?
Both, but for different reasons. Isolated components let you verify the consistency of the design system: each component in all its states (default, hover, disabled, error, loading). Full pages verify the integration: the components together, in the real layout, with real content. If you have to choose, start with full pages: they cover more visual surface for less configuration.
My framework uses SSR. When should I capture the screenshots?
After the complete client-side hydration. SSR pages have a "server" visual state (static HTML) and a "client" state (hydrated, interactive). Visual regressions often occur during the transition between the two. Configure a sufficient delay or a wait signal (such as the absence of skeleton loaders) so that the capture reflects the final state the user sees.
Are Storybook component visual tests enough?
No. Storybook tests isolated components in a controlled environment. But the most impactful visual bugs occur in the context of the real application: style conflicts between components, layout problems at specific resolutions, interactions between the component and its environment (navigation bar, footer, sidebar). Full-page visual testing catches these contextual bugs that Storybook cannot detect.
How do you handle animations and transitions in visual tests?
Two approaches. The first: disable animations during captures (via a CSS class that sets all animation-duration and transition-duration to 0). The second: wait for animations to finish before capturing (via a delay or a DOM signal). Delta-QA supports both approaches. The first is more reliable for automated tests, the second is useful when the post-animation state is what you want to verify.
We are migrating from Angular to React. How do we maintain visual coverage during the migration?
With an agnostic tool like Delta-QA, your baselines remain valid during the migration. You established visual references of your pages before the migration. At each step of the migration (when a component is rewritten in React), you compare the result with the original baseline. If the visual rendering is identical, the migration of that component is validated. If differences appear, they are either intentional (new design) or regressions to fix. Visual testing becomes your safety net during the migration: a net that only an agnostic tool can provide.
Does Delta-QA support Web Components and micro-frontends?
Yes, natively. Since Delta-QA tests the result rendered in the browser, it is indifferent to the underlying technology. Web Components, micro-frontends, iframes, Shadow DOM: anything that produces a visual rendering in a browser is testable. That is the fundamental advantage of operating at the browser level rather than the framework level.
Conclusion: the framework passes, the visual rendering remains
Frontend frameworks have a lifespan. Not that of your products. Angular 1 gave way to Angular 2+, which became simply Angular. Vue 2 migrated to Vue 3 with significant breaking changes. React Class Components became relics in favor of Hooks. Tomorrow, perhaps Svelte, Solid or Qwik will take over. Betting your visual testing strategy on the framework of the moment is building on sand.
What does not change is that your users judge your application on what they see. Pixels on a screen. HTML rendered by a browser. And that is a constant that survives every cycle of technological hype.
Your visual testing tool should have the same constancy. A tool that tests what the browser displays, not what the framework produces. A tool that survives migrations, redesigns, architecture changes. A tool that focuses on the only thing that matters: does it look right?