@@ -108,7 +108,7 @@ Scenario('Compare CPU Usage Images', async (I) => {
108
108
### Ignored Box
109
109
You can also exclude part of the image from comparison, by specifying the excluded area in pixels from the top left.
110
110
Just declare an object and pass it in options as ` ignoredBox ` :
111
- ```
111
+ ``` js
112
112
const box = {
113
113
left: 0 ,
114
114
top: 10 ,
@@ -121,6 +121,19 @@ I.seeVisualDiff("image.png", {prepareBaseImage: true, tolerance: 1, ignoredBox:
121
121
After this, that specific mentioned part will be ignored while comparison.
122
122
This works for ` seeVisualDiff ` and ` seeVisualDiffForElement ` .
123
123
124
+ ### resemble.js Output Settings
125
+ You can set further output settings used by resemble.js. Declare an object specifying them and pass it in the options as ` outputSettings ` :
126
+
127
+ ``` js
128
+ const outputSettings = {
129
+ ignoreAreasColoredWith: {r: 250 , g: 250 , b: 250 , a: 0 },
130
+ // read more here: https://github.com/rsmbl/Resemble.js
131
+ };
132
+ I .seeVisualDiff (" image.png" , {prepareBaseImage: true , tolerance: 1 , outputSettings: outputSettings});
133
+ ```
134
+
135
+ Refer to the [ resemble.js] ( https://github.com/rsmbl/Resemble.js ) documentation for available output settings.
136
+
124
137
### Skip Failure
125
138
You can avoid the test fails for a given threshold but yet generates the difference image.
126
139
Just declare an object and pass it in options as ` skipFailure ` :
@@ -130,6 +143,7 @@ I.seeVisualDiff("image.png", {prepareBaseImage: true, tolerance: 1, skipFailure:
130
143
After this, the system generates the difference image but does not fail the test.
131
144
This works for ` seeVisualDiff ` and ` seeVisualDiffForElement ` .
132
145
146
+
133
147
### Allure Reporter
134
148
Allure reports may also be generated directly from the tool. To do so, add
135
149
0 commit comments