2026-04-13

This commit is contained in:
gcch 2026-04-11 10:53:06 +02:00
commit 08ad871e0c
9 changed files with 320 additions and 293 deletions

View file

@ -37,13 +37,15 @@ Array.from<TestPage>([
},
]).forEach(({ pageName, url }) => {
test.skip(pageName, async ({ page }, testInfo) => {
await page["goto"](url);
await page.goto(url);
const projectName = testInfo.project.name;
const timestamp: string = genTimestamp();
const viewport = page.viewportSize();
const viewportSize = page.viewportSize() ?? { height: 0, width: 0 };
const captureName = `${pageName}/${projectName}-${viewport?.width}-${viewport?.height} ${timestamp}.png`;
const captureName = `${pageName}/${projectName}-${String(viewportSize.width)}-${
String(viewportSize.height)
} ${timestamp}.png`;
await takeFullPageScreenshot(page, captureName);
await expect(page).toHaveURL(url);