oblador / loki

👁 Visual Regression Testing for Storybook
https://loki.js.org/
MIT License
1.77k stars 173 forks source link

Loki + Storybook 8 problem with GitLab ci cd #521

Open SergeyBrukov opened 4 months ago

SergeyBrukov commented 4 months ago

Hello, I have a problem, well, I can’t connect Loki to CI/CD, I tried using Google, I connected it, but because the browsers are different locally and for CI/CD, different screenshots come out, now I’m trying through docker, but I keep getting an error

Using docker image sha256:b8da0189cd1b3773fd91fe2ec0ab8a45a62171d42a4984c48680d682fc0ab33a for yukinying/chrome-headless-browser-stable:118.0.5993.117 with digest yukinying/chrome-headless-browser-stable@sha256:626c200c0 a94e7ee87cc883e4ae6d5f47a4639c31e316e76f4c684bdf4be9934 ... find: '/home/headless/.config/chromium/Crash Reports/pending/': No such file or directory [0610/130928.049129:ERROR:headless_shell.cc(266)] Multiple targets are not supported.

here is mine "storybook": "storybook dev -p 9009 -c .storybook", "test:ui": "npx loki test", "test:ui:ci": "npx concurrently --kill-others --raw --success first "npm run storybook" "npm run test:ui" "npx delay""

run-loki: image: yukinying/chrome-headless-browser-stable:118.0.5993.117 stage: run-loki scripts:

npm run test:ui:ci artifacts: paths: .loki/difference/ .loki/reference/ .loki/current/ expire_in: 1 week I've been sitting on this CI/CD with Loki for a very long time

todorgrigorov commented 2 days ago

Hey @SergeyBrukov, did you find a solution for this?