test: layout header, footer and sidebar
This commit is contained in:
20
playwright/tests/components/navigation/navTest.ts
Normal file
20
playwright/tests/components/navigation/navTest.ts
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user