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
You can pass arguments to `cy.screenshot()` as well, in that case the error threshold can be passed as `errorThreshold` property of object:
87
+
88
+
```js
89
+
it('should display the login page correctly', () => {
90
+
cy.visit('/03.html');
91
+
cy.compareSnapshot('login', {
92
+
capture:'fullPage',
93
+
errorThreshold:0.1
94
+
});
95
+
});
96
+
```
86
97
> Looking for more examples? Review [docker/cypress/integration/main.spec.js](https://github.com/mjhea0/cypress-visual-regression/blob/master/docker/cypress/integration/main.spec.js).
0 commit comments