2026-04-05
This commit is contained in:
parent
5f835ca4e6
commit
2971f5516d
62 changed files with 439 additions and 497 deletions
|
|
@ -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" });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue