Summary
Loki is a Visual Regression Testing software that integrates with Storybook. We need to run it in CI for every open PR to ensure no unwanted UI changes get merged to main.
Please follow the guide on Loki's website: https://loki.js.org/continuous-integration.html.
Due to the architecture of our current CI pipeline, Loki CI step should depend on the eui-pull-request-deploy-docs step since it depends on Storybook being deployed.
Acceptance Criteria
- Loki should run as a separate CI step after Storybook is built and deployed
loki command should be executed with the --requireReference flag and CI=true environment variable set
- failed tests should result in a failed step status and blocked PR merge
Summary
Loki is a Visual Regression Testing software that integrates with Storybook. We need to run it in CI for every open PR to ensure no unwanted UI changes get merged to
main.Please follow the guide on Loki's website: https://loki.js.org/continuous-integration.html.
Due to the architecture of our current CI pipeline, Loki CI step should depend on the
eui-pull-request-deploy-docsstep since it depends on Storybook being deployed.Acceptance Criteria
lokicommand should be executed with the--requireReferenceflag andCI=trueenvironment variable set