소스 검색

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}`)
 	})
 }