|
@@ -4,14 +4,9 @@ import path from "path"
|
|
|
|
|
|
const previewDir = path.join(__dirname, "../preview/dist")
|
|
|
|
|
|
-async function visualDiff(page: Page, url: string) {
|
|
|
- await page.goto(url);
|
|
|
- await expect(page).toHaveScreenshot({ fullPage: true });
|
|
|
-}
|
|
|
-
|
|
|
const htmlFiles = fs.readdirSync(previewDir).filter((file) => file.endsWith(".html"))
|
|
|
|
|
|
-for (const file of htmlFiles) {
|
|
|
+for (const file of htmlFiles.slice(0, 10)) {
|
|
|
test(`Compare ${file}`, async ({ page }) => {
|
|
|
const filePath = `file://${path.join(previewDir, file)}`
|
|
|
await page.goto(filePath)
|