Latest settings

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2025-04-12 17:35:36 -07:00
parent 4cd4cf18f0
commit 7028e64fab
3 changed files with 20 additions and 13 deletions

View File

@@ -1,7 +1,9 @@
import { test, expect } from '@playwright/test';
import { pages } from "./pages.ts";
test('example test', async ({ page }) => {
await page.goto('http://localhost:8081/blog/02_compiler_parsing/index.html');
await expect(page).toHaveScreenshot({ fullPage: true });
});
for (const pageUrl of pages) {
test(`visual regression for ${pageUrl}`, async ({ page }) => {
await page.goto(pageUrl);
await expect(page).toHaveScreenshot({ fullPage: true });
});
}