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
(or the location of the custom test file relative to the current directory)
111
+
110
112
### Step 4 - Use Sauce Visual in Your Tests
111
113
112
114
If you've set up a fixture during Step 3, use the 'Fixture' example, otherwise, you can still access Sauce Visual using our exported function with the 'Standard' example.
// Pass the current page object and test info into the `sauceVisualCheck` call, and optionally
143
145
// customize the options via the fourth argument.
@@ -174,3 +176,7 @@ These options can be defined globally during fixture initialization (see [Step 3
174
176
|`delay`|`number`|`0` (no delay) | A number, in ms, that we should delay before taking the snapshot. |
175
177
|`ignoreRegions`|`(RegionIn \| string)[]`|`[]` (empty) | An array of manually created ignore regions, or CSS selectors in string form to ignore. |
176
178
|`diffingMethod`|`DiffingMethod`|`DiffingMethod.Balanced`| The diffing method from the backend that we should use when performing visual differences. This can be customized by using the `DiffingMethod` enum exported from our `@saucelabs/visual` package. |
179
+
180
+
## Example
181
+
182
+
An example project is available in our [visual examples repo](https://github.com/saucelabs/visual-examples/tree/main/playwright-js).
0 commit comments