jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
890 stars 159 forks source link

matchImageSnapshot command options not being respected in cloud containers #234

Open lvxwrkr777 opened 2 years ago

lvxwrkr777 commented 2 years ago

I'm having a weird problem where tests pass locally, but not in CI. I think it's because my options (element padding and failureThreshold) are not being respected, in CI only.

CI is obviously cloud containers, so there are some environmental differences. In CI, we are cacheing cypress, for instance.

I've tried passing the options in-script, and also in support\commands.js

Also, my Cypress is in Typescript.