diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 902e79d6..5aaf5c44 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,6 @@ updates: # update-package-lock workflow handles minor/patch updates - delay for a few weeks to give time to handle breaking changes in those PRs default-days: 25 semver-major-days: 5 + exclude: + # relying on Dependabot to manage our playwright updates so we can trigger a release + - "playwright" diff --git a/package-lock.json b/package-lock.json index a598decd..bd4975e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "glob": "^13", "lit": "^2 || ^3", "pixelmatch": "^8", + "playwright": "~1.64", "pngjs": "^7", "rollup": "^4" }, diff --git a/package.json b/package.json index d7ba6fc9..39f24f90 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "glob": "^13", "lit": "^2 || ^3", "pixelmatch": "^8", + "playwright": "~1.64", "pngjs": "^7", "rollup": "^4" } diff --git a/src/server/visual-diff-plugin.js b/src/server/visual-diff-plugin.js index e0363fca..d3890aba 100644 --- a/src/server/visual-diff-plugin.js +++ b/src/server/visual-diff-plugin.js @@ -126,7 +126,7 @@ async function createComparisonPNGs(original, newSize) { function getPixelsDiff(screenshotImage, goldenImage) { const diff = new PNG({ width: screenshotImage.width, height: screenshotImage.height }); const pixelsDiff = pixelmatch( - screenshotImage.data, goldenImage.data, diff.data, screenshotImage.width, screenshotImage.height, { diffMask: true, threshold: DEFAULT_TOLERANCE } + screenshotImage.data, goldenImage.data, diff.data, screenshotImage.width, screenshotImage.height, { diffMask: true, includeAA: true, threshold: DEFAULT_TOLERANCE } ); return { diff, pixelsDiff }; }