Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Adrien Fichet2e5ddd4361fa
diff --git a/docs/src/test-configuration-js.md b/docs/src/test-configuration-js.md
index f48ca31840..c9e62717b9 100644
--- a/docs/src/test-configuration-js.md
+++ b/docs/src/test-configuration-js.md
@@ -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,
},
},
diff --git a/docs/src/test-use-options-js.md b/docs/src/test-use-options-js.md
index 3c93d951a6..df1fd9e8bd 100644
--- a/docs/src/test-use-options-js.md
+++ b/docs/src/test-use-options-js.md
@@ -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