Overview
Loki is a visual regression testing tool specifically designed for Storybook projects. It addresses the limitations of other tools by offering headless execution and avoiding deprecated technologies like PhantomJS. Loki ensures consistent UI rendering across different platforms by using Dockerized Chrome, iOS simulator, and Android emulator. The tool minimizes maintenance costs by automating the setup and providing reproducible tests, independent of the operating system. Loki compares screenshots using pixelmatch, GraphicsMagick, or looks-same, and allows configuration to suit different image comparison needs. It integrates directly with Storybook, streamlining the visual testing process for component libraries and design systems. The architecture supports various platforms and browsers, ensuring comprehensive coverage for visual regressions.
Common tasks
