浏览代码

Remove limit on visual regression tests to include all HTML files for comprehensive comparison

codecalm 6 月之前
父节点
当前提交
81a8738823
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/visual.test.ts

+ 1 - 1
tests/visual.test.ts

@@ -7,7 +7,7 @@ const previewDir = path.join(__dirname, "../preview/dist")
 
 const htmlFiles = fs.readdirSync(previewDir).filter((file) => file.endsWith(".html"))
 
-for (const file of htmlFiles.slice(0, 10)) {
+for (const file of htmlFiles) {
 	test(`Compare ${file}`, async ({ page }) => {
 		await page.goto(`file://${path.join(previewDir, file)}`)
 		await page.waitForLoadState("networkidle")