Files
CPLv4.0/playwright/tests/components/footer/footerTest.ts

19 lines
685 B
TypeScript

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/)).toBeVisible();
await expect(footer.getByText(/Telefon: 04402 972577/)).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();
}