simonsmith / cypress-image-snapshot

Catch visual regressions in Cypress with jest-image-snapshot
MIT License
64 stars 15 forks source link

comparing snapshots in a docker image always passes #44

Closed maximegheraille closed 8 months ago

maximegheraille commented 8 months ago

Hi,

I am using a docker image with github actions to run cypress, everything works fine except that all snapshots always pass, even if I use random images instead of correct ones.

My docker config uses WORKDIR /opt/app and COPY . /opt/app (nothing special here) I logged all my folders content from the docker image and they are all present at ./cypress/report/asset, My customSnapshotsDir is also ./cypress/report/asset with e2eSpecDir: ${Cypress.spec.relative}

any idea what could be the issue ? not sure if you ever tested this before.

maximegheraille commented 8 months ago

found the issue, the bind target directory does not need the opt/app in it, so just target=/cypress/report/asset