Open jkodi-215 opened 3 years ago
I just started trying to use this project to compare plotly charts and to check for unexpected changes. I'm getting the same error.
If you are using zepto, it may be a cypress issue https://github.com/cypress-io/cypress/issues/6529.
This stackoverflow post may solve your problem.
Describe the bug Failing to take Image Snap Shot of an Element
To Reproduce in the test block cy.visit('/') cy.get('.form').click() cy.get('.header').toMatchImageSnapshot()
Expected behavior It should a image snap shot of that element
Actual behavior cy.screenshot() failed because it requires a DOM element.
The subject received was:
The previous command that ran was:
All 3 subject validations failed on this subject.
Note: I am passing a DOM element
Desktop (please complete the following information):