2026-04-05

This commit is contained in:
gcch 2026-04-05 13:11:21 +02:00
commit 2971f5516d
62 changed files with 439 additions and 497 deletions

View file

@ -1,14 +1,12 @@
import { expect, type Page, test } from "@playwright/test";
import { expect, test } from "@playwright/test";
import type { Page } from "@playwright/test";
type TestPage = {
pageName: string;
url: string;
};
const genTimestamp = (): string =>
Intl.DateTimeFormat("sv-SE", {
dateStyle: "short",
}).format(Date.now());
const genTimestamp = (): string => Intl.DateTimeFormat("sv-SE", { dateStyle: "short" }).format(Date.now());
const takeFullPageScreenshot = async (page: Page, name: string): Promise<void> => {
await page.screenshot({ fullPage: false, path: `captures/${name}`, type: "png" });