Skip to content

Commit 26d6690

Browse files
author
Zoo (VP)
committed
test(visual): add maxDiffPixelRatio for cross-platform baseline tolerance
1 parent 3c17502 commit 26d6690

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎webview-ui/playwright-ct.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export default defineConfig({
117117
expect: {
118118
toHaveScreenshot: {
119119
animations: "disabled",
120+
// Allow 1% pixel diff to tolerate cross-platform rendering
121+
// differences (Windows ↔ Linux font anti-aliasing).
122+
maxDiffPixelRatio: 0.01,
120123
},
121124
},
122125
projects: [

0 commit comments

Comments
 (0)