Re:Ask HN: How to view UI changes before & after a pull requ...
by advanderveer on Monday April 25, 2022 @02:03AM
(#31151132)
I can second the effectiveness of Chromatic, essential for us at crewlinker.com. We have over 80 components with 281 stories, all being checked for visual regressions on every PR. It is also surprisingly effective of just catching regular errors that occur because some rendering logic may indeed result in the app crashing.
Re:Ask HN: How to view UI changes before & after a pull requ...
by octatrack on Monday April 25, 2022 @02:42AM
(#31151289)
I also vouch for Chromatic, it has been extremely valuable for us. It is only working with Storybook, though, as it's made by the same company.
Re:Ask HN: How to view UI changes before & after a pull requ...
by 2rsf on Monday April 25, 2022 @10:09AM
(#31154986)
I suppose any decent visual testing tool would work, there are quite a few of them
Re:Ask HN: How to view UI changes before & after a pull requ...
by seestraw on Sunday April 24, 2022 @11:18PM
(#31150453)
Thanks! Is Chromatic only for Storybook?
Re:Ask HN: How to view UI changes before & after a pull requ...
by lelandfe on Monday April 25, 2022 @09:27AM
(#31154282)
It's tightly integrated with it, so if not "only for Storybook," then near to it. I like Storybook, but it's not worth implementing solely for visual CI testing IMO.
But phrases like "snapshot testing" and "visual regression testing" are what you you/your FE team should be Googling – hopefully there's a tool out there that fits your existing architecture!
Otherwise, as sibling commenters have noted, a policy of screenshots also works.
I've used Chromatic before and really enjoyed it: https://www.chromatic.com/features/test
Jest also offers the core functionality if you want to roll your own tests: https://jestjs.io/docs/snapshot-testing