Browse Source

Fix screenshot filename in visual regression tests to use the correct HTML file name

codecalm 6 months ago
parent
commit
1415820cb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/visual.test.ts

+ 1 - 1
tests/visual.test.ts

@@ -11,6 +11,6 @@ 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, `${page}`)
+		await argosScreenshot(page, `${file}`)
 	})
 	})
 }
 }