---
title: "Improving Frontend Regression Testing with Chromatic"
description: "Kogan.com added Chromatic visual regression testing on top of Storybook after migrating its frontend to Remix, catching spacing, typography and layout regressions that unit tests miss."
url: "https://swe.quest/articles/improving-frontend-regression-testing-with-chromatic-4cc8d3a156b2851b"
canonical: "https://devblog.kogan.com/blog/improving-frontend-regression-testing-with-chromatic"
source: "Kogan.com Dev Blog"
published: "2026-01-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["testing","frontend","ci-cd","typescript"]
---

# Improving Frontend Regression Testing with Chromatic

A post on [Kogan.com Dev Blog](https://swe.quest/sources/kogan.md), published 2026-01-30, 5 min read, Case study. Original: [https://devblog.kogan.com/blog/improving-frontend-regression-testing-with-chromatic](https://devblog.kogan.com/blog/improving-frontend-regression-testing-with-chromatic)

## Summary

Kogan.com added Chromatic visual regression testing on top of Storybook after migrating its frontend to Remix, catching spacing, typography and layout regressions that unit tests miss. UI Review is the default mode: approval is flexible and persists across later commits. Visual Tests are an optional paid mode that treats diffs as authoritative, re-requires approval on each change, can restrict who approves and can run across browsers and viewports. To keep stories realistic, a script parses the OpenAPI schema and Remix route definitions, finds API-client imports via the AST, and generates MSW handlers with schema-derived example responses, so the schema is the single source of truth. Key lessons: good Storybook coverage and deliberate baseline approval are essential, and configuration choices drive both cost and developer friction.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- Storybook
- OpenAPI schemas
- Mock Service Worker

## Keywords

Chromatic, Storybook, Remix, OpenAPI, MSW

## Related posts

- [Autoresearch isn’t just for training models](https://swe.quest/articles/autoresearch-isn-t-just-for-training-models-00e59e41077ad95c.md): Shopify Engineering · 2026-04-15 · Easy · 8 min read · AI agents, Performance engineering, Build systems, CI/CD, Developer productivity
  Generalizing Karpathy's Autoresearch beyond model training, Shopify built pi-autoresearch, an extension for the Pi agent harness that runs an agent in an endless loop against a single measurable metric: establish a baseline, form a hypothesis, test it, keep improvements and discard crashes or regressions.
- [Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready](https://swe.quest/articles/remixing-shopify-s-admin-how-we-made-it-30-faster-and-ai-ready-996b243df73e0345.md): Shopify Engineering · 2025-06-30 · Medium · 7 min read · Web performance, React, Frontend, Refactoring & migrations, AI agents
  Shopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite.
- [Ready, steady, goa: our API setup](https://swe.quest/articles/ready-steady-goa-our-api-setup-f9a8a900b508af76.md): incident.io · 2025-08-11 · Medium · 10 min read · API design, Go, TypeScript, Developer productivity
  incident.io defines its HTTP API in Goa's design-first DSL, which generates net/http transport handlers, validation code, typed Go service interfaces, OpenAPI 3.0 specs and Go clients.
- [Design system annotations, part 2: Advanced methods of annotating components](https://swe.quest/articles/design-system-annotations-part-2-advanced-methods-of-annotating-components-10641335427d3115.md): GitHub Engineering · 2025-05-09 · Medium · 9 min read · Design systems, Accessibility, Frontend
  Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code.
- [How we Rebuilt the Cloud Console (While Running It)](https://swe.quest/articles/how-we-rebuilt-the-cloud-console-while-running-it-603a41a6cbd3bedb.md): ClickHouse · 2024-05-14 · Medium · 12 min read · Design systems, React, Frontend, Refactoring & migrations, Deployment
  ClickHouse rebuilt its Cloud Console by merging a legacy Angular control plane and a React SQL console (from the Arctype acquisition) into a single React app, backed by a token-driven design pipeline.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
