Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Percy vs chromatic which visual testing tool fits indian frontend teams?

· 6 min read · Home Tech

In this article
  1. Background: Why Visual Testing Matters
  2. How Percy Works
  3. How Chromatic Works
  4. Choosing Based on Your Team’s Stack
  5. Cost and Pricing Considerations for Indian Teams
  6. Common Problems and How to Avoid Them
  7. Alternatives to Percy and Chromatic
  8. Frequently Asked Questions

For Indian frontend teams choosing between Percy and Chromatic, the short answer is: pick Percy if you work primarily with generic web apps and need broad browser coverage, and pick Chromatic if you already use Storybook and want a deeply integrated component workflow. Both are cloud-based visual regression testing tools, but they differ in pricing, integration depth, and how they handle component vs. full-page testing.

Background: Why Visual Testing Matters

Visual regression testing catches UI changes that unit or snapshot tests miss—like a shifted layout, a wrong font, or a color contrast issue. Traditional tests assert on code, not pixels. Visual tools take screenshots of your UI before and after a code change, then highlight any pixel differences for a human to review. This is especially important for Indian teams building responsive sites for diverse devices and slower network conditions, where layout shifts and asset loading can cause subtle rendering issues.

Percy, acquired by BrowserStack in 2020, is a general-purpose visual testing platform that works with any web app. Chromatic, built by the Storybook team, is a specialized tool that integrates directly with Storybook, a popular component library tool. Both are widely used in Indian startups and enterprises, but they solve slightly different problems.

How Percy Works

Percy captures full-page screenshots of your app across multiple browsers and viewport sizes. You typically integrate it into your CI pipeline via SDKs for JavaScript, Ruby, Python, or others. After every commit, Percy renders the page, compares it to a baseline, and flags any visual diffs. It also offers a DOM snapshotting feature that serializes the page’s HTML and CSS, so screenshots are more stable and less flaky than traditional browser-based captures.

Key features include:

  • Cross-browser coverage: Test on Chrome, Firefox, Safari, and Edge simultaneously.
  • Responsive testing: Set multiple viewport widths per snapshot.
  • Visual reviews: A web app where team members can approve or reject changes.
  • Integrations: Works with GitHub, GitLab, Bitbucket, and CI tools like Jenkins and CircleCI.

Percy is language-agnostic: you can use it with React, Angular, Vue, or plain HTML. This makes it a flexible choice for teams with mixed tech stacks.

How Chromatic Works

Chromatic is built specifically for Storybook. Storybook is a development environment where you build UI components in isolation. Chromatic automatically captures a screenshot of every Story (component state) in your Storybook. It then runs visual tests on each story across different browsers and viewports. Because it knows the component structure, it can also provide interaction tests (using Testing Library) and accessibility checks.

Chromatic’s strengths:

  • Component-level precision: Tests each component in isolation, so you know exactly which component broke.
  • Storybook integration: Zero-config setup if you already use Storybook.
  • TurboSnap: Only tests components that actually changed, speeding up CI.
  • UI review: A dedicated interface for designers and developers to approve changes.

Chromatic is less suited for full-page or end-to-end visual testing. It expects your UI to be composed of Storybook stories, which may not cover complex user flows or backend-driven pages.

Choosing Based on Your Team’s Stack

The biggest deciding factor is your existing architecture.

  • If you use Storybook (very common in Indian frontend teams building design systems), Chromatic is the natural fit. It reduces setup time and gives you component-level insights.
  • If you have a legacy app or a non-Storybook setup, Percy is easier to adopt because it only needs a URL or a page snapshot.
  • If you need full-page screenshots (e.g., for marketing pages, dashboards, or e-commerce checkouts), Percy is more appropriate.
  • If you are building a design system that will be consumed by multiple projects, Chromatic’s component-centric approach helps maintain consistency.

In practice, many teams use both: Chromatic for component-level tests and Percy for full-page regression. But that doubles cost and complexity, so it’s only worth it for large organizations.

Cost and Pricing Considerations for Indian Teams

Pricing is a major factor for Indian startups and mid-sized companies. Both tools offer free tiers with limitations.

  • Percy: Free plan includes 5,000 screenshots per month, which is generous for small teams. Paid plans start at around $99 per month for 10,000 screenshots. Additional screenshots cost extra.
  • Chromatic: Free plan includes 5,000 snapshots per month. Paid plans start at $149 per month for 10,000 snapshots. However, Chromatic’s pricing is per project, which can add up if you have multiple repositories.

For Indian teams, pricing in USD can be a hurdle. However, both tools are cloud-based, so you avoid infrastructure costs. BrowserStack (Percy’s parent) offers special pricing for Indian startups through its startup program, but you need to check current terms. Chromatic also has discounts for open-source projects and educational institutions.

Consider not just the subscription, but also the time saved. A tool that integrates seamlessly with your CI can save hours per week, which often justifies the cost.

Common Problems and How to Avoid Them

Visual testing tools have a learning curve. Here are common pitfalls Indian teams face:

  • Flaky tests due to dynamic content: Animations, timers, or third-party widgets cause false positives. Use Percy’s waiting and stability settings, or Chromatic’s delay option to let the page settle.
  • Baseline updates: When you intentionally change the UI, you must accept the new baseline. Make sure your team has a clear process for reviewing and approving diffs.
  • Network latency: In India, slow internet can cause timeouts. Both tools run in the cloud, so your local connection doesn’t affect the capture, but CI timeouts can happen if your build takes too long. Optimize your build to only run visual tests on relevant changes.
  • Handling dynamic data: Use Percy’s dynamic data masking or Chromatic’s data mocking to avoid false diffs from changing data.

Alternatives to Percy and Chromatic

If neither tool fits your budget or workflow, consider these alternatives:

  • BackstopJS: Free, open-source, and runs locally. Great for small teams, but you manage your own infrastructure.
  • Applitools: Uses AI to reduce false positives, but is more expensive.
  • Playwright Visual Testing: If you already use Playwright for E2E testing, you can add visual assertions without a separate tool.
  • Jest Snapshots: Not true visual testing, but can catch DOM changes for React components.

For Indian teams with budget constraints, starting with BackstopJS or Playwright’s built-in visual testing might be a pragmatic first step before investing in a cloud tool.

Frequently Asked Questions

Can I use Percy with Storybook?

Yes, Percy has a Storybook addon that captures stories as snapshots. However, it treats them as full-page screenshots, not component-level tests. You lose some of Chromatic’s component-specific features like TurboSnap and interaction tests.

Does Chromatic work with non-React frameworks?

Chromatic supports any framework that Storybook supports, including Vue, Angular, Svelte, and even plain HTML. However, interaction tests are limited to frameworks where Testing Library is available.

Which tool is better for a team with no visual testing experience?

Percy is generally easier to start with because it doesn’t require learning Storybook. You can add it to an existing app in a few hours. Chromatic requires Storybook setup, which is an extra step but also brings component documentation benefits.

How do I handle visual tests for mobile apps?

Both Percy and Chromatic are web-focused. For native mobile apps, you would need a different tool like Applitools or a device farm. However, you can test responsive web views using both tools by setting mobile viewport sizes.

Are there any open-source alternatives that are free?

Yes, BackstopJS is free and open-source. You can also use Playwright’s built-in visual testing, which is free. These require more setup and maintenance, but they are viable for small teams with limited budgets.

What happens if I exceed my screenshot limit?

Both tools either block new snapshots or charge overage fees. Percy pauses your tests until you upgrade or reset your cycle. Chromatic similarly pauses. It’s wise to monitor your usage and optimize by skipping unchanged components (using TurboSnap-like features) to stay within limits.