DEV Community

Discussion on: Visual Regression Testing with Cypress 10

Collapse
 
faithberroya profile image
Faith Berroya • Edited

Hello sir, do you have one that uses Javascript? I tried github.com/meinaart/cypress-plugin... but is not running when I add import 'cypress-plugin-snapshots/commands'; in e2e.js.

Here is my issue in SO

(Edit)

Hello sir. I tried this plugin as well but I keep on getting this error although I have the folder on my directory. I'm currently stuck.

I added a ticket on their repository github.com/uktrade/cypress-image-d...
Image description
Image description

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

I will have a look on the issue you've opened and see if I can help somehow. Cheers.

Collapse
 
faithberroya profile image
Faith Berroya

Thank you sir!

Thread Thread
 
mbarzeev profile image
Matti Bar-Zeev

I'm assuming that the .png file cannot be found under the comparison directory, the question is why...
Note that my cypress configuration adds the plugin for "component" testing and not for "e2e". I don't know if that difference makes the change, but keep in mind, perhaps there is a different configuration for "e2e"...
For the lack of a better solution ATM, I would try to run a "component" testing to see if that generates the required images and diff, and continue from there.