Position: Principal Engineer
Components are commonly tested with snapshots of the rendered DOM. While it’s beneficial when working with untested legacy systems, often it’s a high noise and high maintenance approach that easily lets regressions slip by. It’s now considered bad practice having it as the single testing strategy.
Loki is a visual testing tool that has similar benefits as snapshot testing in that it’s quick and easy to get started, but fewer of the downsides – refactors are not flagged as regressions and discerning desirable from unintended changes is much easier. Last year it gained a place in the ThoughtWorks Tech Radar and has since matured to support advanced use cases with massive parallelization using lambdas.
The talk outlines successful strategies for visual testing in general, pitfalls to avoid and how to get started in under a minute