test: extracted navigation tests to separate file

This commit is contained in:
ISA
2025-09-02 11:48:54 +02:00
parent 89dc26b0d2
commit fb79817136
8 changed files with 91 additions and 98 deletions

View File

@@ -0,0 +1,18 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
export async function headerTest(page: Page) {
await highlightAndExpectVisible(
page,
page.getByRole("heading", { name: "Meldestation" })
);
await highlightAndExpectVisible(page, page.getByRole("banner"));
await highlightAndExpectVisible(
page,
page.getByRole("img", { name: "Logo", exact: true })
);
await highlightAndExpectVisible(
page,
page.getByRole("main").locator("svg").first()
);
}