Ver código fonte

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

codecalm 6 meses atrás
pai
commit
1415820cb1
1 arquivos alterados com 1 adições e 1 exclusões
  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 }) => {
 		await page.goto(`file://${path.join(previewDir, file)}`)
 		await page.waitForLoadState("networkidle")
-		await argosScreenshot(page, `${page}`)
+		await argosScreenshot(page, `${file}`)
 	})
 }