56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
import type { Page } from "@playwright/test";
|
|
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
|
|
|
export async function footerTest(page: Page) {
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page
|
|
.locator("div")
|
|
.filter({ hasText: /^Littwin Systemtechnik GmbH & Co\. KG$/ })
|
|
.locator("svg")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page.getByText("Littwin Systemtechnik GmbH &")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page
|
|
.locator("div")
|
|
.filter({ hasText: /^Telefon: 04402 972577-0$/ })
|
|
.locator("svg")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page.getByText("Telefon: 04402 972577-")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page
|
|
.locator("div")
|
|
.filter({ hasText: /^kontakt@littwin-systemtechnik\.de$/ })
|
|
.locator("svg")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page.getByText("kontakt@littwin-systemtechnik")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page
|
|
.locator("div")
|
|
.filter({ hasText: /^Handbücher$/ })
|
|
.locator("svg")
|
|
);
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page.getByText("Handbücher", { exact: true })
|
|
);
|
|
await page.getByText("Handbücher", { exact: true }).click();
|
|
await highlightAndExpectVisible(
|
|
page,
|
|
page.getByRole("heading", { name: "PDF Handbücher" })
|
|
);
|
|
await highlightAndExpectVisible(page, page.getByText("KUE705FO.PDF"));
|
|
}
|