浏览代码

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

codecalm 6 月之前
父节点
当前提交
1415820cb1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}`)
 	})
 }