import { test, expect } from "@playwright/test"; test.use({ viewport: { height: 900, width: 1600, }, }); test("test", async ({ page }) => { await page.goto("http://localhost:3000/dashboard"); await page.getByRole("img", { name: "Logo", exact: true }).click(); await page.getByRole("img", { name: "TALAS Logo" }).click(); await page.getByRole("heading", { name: "Meldestation" }).click(); await page.getByText("CPLV4 Ismail Rastede").click(); await expect(page.getByRole("button", { name: "Dark Mode" })).toBeVisible(); await expect(page.getByRole("link", { name: "Übersicht" })).toBeVisible(); await expect( page.getByRole("link", { name: "Kabelüberwachung" }) ).toBeVisible(); await expect( page.getByRole("link", { name: "Meldungseingänge" }) ).toBeVisible(); await expect( page.getByRole("link", { name: "Schaltausgänge" }) ).toBeVisible(); await expect( page.getByRole("link", { name: "Messwerteingänge" }) ).toBeVisible(); await expect(page.getByRole("link", { name: "Berichte" })).toBeVisible(); await expect(page.getByRole("link", { name: "System" })).toBeVisible(); await expect(page.getByRole("link", { name: "Einstellungen" })).toBeVisible(); await expect( page .locator("div") .filter({ hasText: /^Littwin Systemtechnik GmbH & Co\. KG$/ }) .locator("path") ).toBeVisible(); await expect(page.getByText("Littwin Systemtechnik GmbH &")).toBeVisible(); await expect( page .locator("div") .filter({ hasText: /^Telefon: 04402 972577-0$/ }) .locator("path") ).toBeVisible(); await expect(page.getByText("Telefon: 04402 972577-")).toBeVisible(); await expect( page .locator("div") .filter({ hasText: /^kontakt@littwin-systemtechnik\.de$/ }) .locator("path") ).toBeVisible(); await expect(page.getByText("kontakt@littwin-systemtechnik")).toBeVisible(); await expect( page .locator("div") .filter({ hasText: /^Handbücher$/ }) .locator("svg") ).toBeVisible(); await expect(page.getByText("Handbücher", { exact: true })).toBeVisible(); await page.getByText("Handbücher", { exact: true }).click(); await expect( page.getByRole("heading", { name: "PDF Handbücher" }) ).toBeVisible(); await expect(page.getByText("KUE705FO.PDF")).toBeVisible(); await expect(page.getByRole("button", { name: "Schließen" })).toBeVisible(); await page.getByRole("button", { name: "Schließen" }).click(); });