1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 09:24:24 +04:00

Add threshold option to argosScreenshot for improved visual comparison

This commit is contained in:
codecalm
2025-02-19 02:09:48 +01:00
parent 1415820cb1
commit b0a62b7cf5

View File

@@ -11,6 +11,8 @@ for (const file of htmlFiles) {
test(`Compare ${file}`, async ({ page }) => { test(`Compare ${file}`, async ({ page }) => {
await page.goto(`file://${path.join(previewDir, file)}`) await page.goto(`file://${path.join(previewDir, file)}`)
await page.waitForLoadState("networkidle") await page.waitForLoadState("networkidle")
await argosScreenshot(page, `${file}`) await argosScreenshot(page, `${file}`, {
threshold: 0.7,
})
}) })
} }