import { Page, expect } from "@playwright/test"; /** * Footer assertions. */ export async function footerTest(page: Page) { // Auf Footer-Bereich einschränken, damit Selektoren eindeutig bleiben const footer = page.getByRole("contentinfo"); await expect(footer).toBeVisible(); await expect( footer.getByText("Littwin Systemtechnik GmbH & Co. KG") ).toBeVisible(); await expect(footer.getByText("Telefon: 04402 972577-0")).toBeVisible(); await expect( footer.getByText("kontakt@littwin-systemtechnik.de") ).toBeVisible(); // Exaktes Label im Footer, nicht die Überschrift "PDF Handbücher" await expect(footer.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.getByRole("button", { name: "Schließen" })).toBeVisible(); await expect(page.getByText("KUE705FO.PDF")).toBeVisible(); await page.getByRole("button", { name: "Schließen" }).click(); }