fix: logo und tests WIP

This commit is contained in:
ISA
2025-09-11 08:36:38 +02:00
parent 95c884bc07
commit 2ceebea533
31 changed files with 544 additions and 1198 deletions

View File

@@ -0,0 +1,36 @@
import { test, expect } from "@playwright/test";
test.use({
viewport: {
height: 900,
width: 1600,
},
});
test("test", async ({ page }) => {
await page.goto("http://localhost:3000/kabelueberwachung");
await expect(page.getByRole("button", { name: "Rack 1" })).toBeVisible();
await expect(page.getByRole("button", { name: "Rack 2" })).toBeVisible();
await expect(page.getByRole("button", { name: "Rack 3" })).toBeVisible();
await expect(page.getByRole("button", { name: "Rack 4" })).toBeVisible();
await expect(
page.getByText(
"1KÜ705-FO⚙BetriebAlarmErdschluss ISO: 10,00 MOhmRSL: 0,000 kOhmKabel 1Kabel 1V4"
)
).toBeVisible();
await expect(
page.getByText("DetailansichtISORSLTDRKVZ").first()
).toBeVisible();
await expect(
page.locator(".bg-littwin-blue.text-white").first()
).toBeVisible();
await expect(
page.locator(".flex > button:nth-child(2)").first()
).toBeVisible();
await expect(
page.locator(".bg-littwin-blue.text-white.cursor-pointer").first()
).toBeVisible();
await expect(
page.getByRole("button", { name: "KVZ", exact: true }).first()
).toBeVisible();
});