You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the link. I guess this will stay the way it is for now.
Here is what I did to bypass this problem in case anybody has the same issue:
// remove script tags from page because they modify the HTML viewcy.intercept("your page URL",(req)=>{req.continue((res)=>{res.body=res.body.replace(/<script[^<]*<\/script>/gi,"");});});// hide stickily positioned page header because it messes up the cypress screenshot capturescy.get("header").invoke("attr","style","display:none");
Search terms
cypress cypress-visual-regression
Question
I'm trying to use
cypress
in combination with thecypress-visual-regression
plugin for visual regression testing, like so:This code visits the
someClass.html
page and takes a screenshot of the div with the class.tsd-member-group
comparing it with an expected screenshot.However I keep getting the following error message no matter what I want to screenshot with cypress:
I traced this down to the following JavaScript code that is located within the HTML file:
This code hides the content of the page and shows it after 500 milliseconds.
So my question is: Why do we need this code?
The text was updated successfully, but these errors were encountered: