test: extracted navigation tests to separate file
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
|
||||
export async function headerTest(page: Page) {
|
||||
await highlightAndExpectVisible(
|
||||
page,
|
||||
page.getByRole("heading", { name: "Meldestation" })
|
||||
);
|
||||
await highlightAndExpectVisible(page, page.getByRole("banner"));
|
||||
await highlightAndExpectVisible(
|
||||
page,
|
||||
page.getByRole("img", { name: "Logo", exact: true })
|
||||
);
|
||||
await highlightAndExpectVisible(
|
||||
page,
|
||||
page.getByRole("main").locator("svg").first()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user