Get an email when we publish a new article or ship something noteworthy. Prefer to read in your own feed reader? Subscribe via RSS.
Happo now works with Vitest Browser Mode. Your component tests already render, click, hover, and type into your components in a real browser. Pass the element to happoScreenshot, and Happo renders it in Chrome, Firefox, Edge, and Safari, and shows what your pull request changed.
Visual testing with Happo has been blind to motion. Until now. Animated snapshots step your animations through a timeline Happo controls, store the frames as an APNG, and show a change to the motion as a frame-by-frame diff in the comparison report, just like still screenshots.
A new example has no baseline to compare it with, so a flaky one used to get accepted without anyone noticing. Happo now renders every added example a few more times and flags the ones that don't come out the same, so you can fix them before they turn into spurious diffs. A new blockApproval option can keep a comparison from being approved until you do.
Happo now integrates with git.cafe: check runs on your commits and pull requests, and baseline lookups that walk back through your commit history. The token Happo needs can post checks, and can't read or push your code; reading history is optional. The integration is labeled experimental while it picks up real-world mileage.
Version 7 of the happo package turns on the checks that used to be opt-in, removes options Happo no longer needs, and fails on config options it doesn't know. This post lists each change, what it gets you, and what to change in your config to upgrade.