Visual testing by framework

Setting up screenshot comparison in Playwright, Cypress, Storybook, Puppeteer, and Selenium — with the current APIs, not the deprecated ones.

Frameworks

Vitest visual regression testing

Vitest browser mode ships visual comparison natively through toMatchScreenshot. How to set it up, why the ecosystem is moving here from the Storybook test-runner, and the stability problem Vitest is unusually honest about.

3 min readRead article
Frameworks

Mobile app visual testing

Native apps break visually in ways the web does not — dynamic type, notches, dark mode, OS version skew. What XCUITest, Espresso, React Native and the hosted tools each cover, and why device fragmentation is the real cost.

4 min readRead article
Frameworks

Storybook visual regression testing in 2026

The Storybook test-runner has been superseded by the Vitest addon. Here is what that changes, the current options for visual testing stories — Chromatic, Loki, Vitest browser mode, Argos — and what story-level coverage still misses.

3 min readRead article
Frameworks

Puppeteer visual regression testing

Puppeteer captures but does not compare. This builds a working visual regression setup with pixelmatch, covers the determinism you have to add yourself, and is honest about when to stop and use a tool.

2 min readRead article
Frameworks

Selenium visual testing

Selenium captures screenshots but has no comparison layer. The options for adding visual regression testing to an existing Selenium suite — commercial SDKs, self-built comparison, and when migrating is the better answer.

3 min readRead article