docs: maxDiffPixelRatio example value should be between 0 and 1 (#23048)

This commit is contained in:
Adrien Fichet 2023-05-17 10:58:16 +02:00 committed by GitHub
parent ae930910ad
commit 2e5ddd4361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ export default defineConfig({
toMatchSnapshot: {
// An acceptable ratio of pixels that are different to the total amount of pixels, between 0 and 1.
maxDiffPixelRatio: 10,
maxDiffPixelRatio: 0.1,
},
},

View File

@ -3,7 +3,7 @@ id: test-use-options
title: "Test use options"
---
In addition to configuring the test runner you can also configure [Emulation](#emulation-options), [Network](#network-options) and [Recording](#recording-options) for the [Browser] or [BrowserContext],. These options are passed to the `use: {}` object in the Playwright config.
In addition to configuring the test runner you can also configure [Emulation](#emulation-options), [Network](#network-options) and [Recording](#recording-options) for the [Browser] or [BrowserContext]. These options are passed to the `use: {}` object in the Playwright config.
### Basic Options