test: layout header, footer and sidebar

This commit is contained in:
ISA
2025-09-11 08:38:00 +02:00
parent 2ceebea533
commit 7fe04f55fe
8 changed files with 65 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
import { Page, expect } from "@playwright/test";
/**
* Sidebar / Navigation visibility + core links.
*/
export async function navTest(page: Page) {
const links = [
"Übersicht",
"Kabelüberwachung",
"Meldungseingänge",
"Schaltausgänge",
"Messwerteingänge",
"Berichte",
"System",
"Einstellungen",
];
for (const name of links) {
await expect(page.getByRole("link", { name })).toBeVisible();
}
}