Open tonai opened 4 years ago
I was looking for something similar, because it would be super helpful to be able to inspect the diff when using toMatchImageSnapshot()
in the Cypress dashboard.
For context, I have a simple button component that i'm testing locally with toMatchImageSnapshot()
but it's failing in my CI, so i can't visually debug it / see the image. I thought Cypress dashboard might help but I'm not able to upload the snapshot diff.
For anyone who finds a similar issue where toMatchSnapshotImage()
works locally but not in a CI:
I forgot that the default font family in Chrome is different in a CI (which is typically Linux) than what I'm using locally. I made sure to add a style reset before these tests and that seemed to fix it.
Hi, I am experiencing the same issue here.
After adding cypress-plugin-snapshots to my project, screenshots are well saved locally but always fail to upload to the cypress dashboard.
Videos always sync with no issue. Only the screenshots fail.
What I have tried :
Here is what I systematicaly get after running a recorded test :
Failed Uploading (1/2) /Users/stephane/testProjectCypress/cypress/screenshots/loginTestTDB.js/snapshot1-0.png
I have contacted the Cypress support and they confirmed that snapshots will only be uploaded when the test failed. The UI still shows an show images button in the Dashboard regardless. But for failed tests, the upload of the diff image would be nice as well.
This would still be an awesome feature. Is there any work done on it?
+1 Anyone figured this out?
Is your feature request related to a problem? Please describe. When running on CI screenshots are not accessible.
Describe the solution you'd like It would be nice to have screeshots available inside the cypress.io dashboard.
Additional context I am using CircleCI with record enabled and after the tests are complete it displays the following information:
It seems to upload successfully some files but failed on others (maybe because of the
#
in the name ?).Here is the repo I use for the tests: https://github.com/tonai/react-deploy