27 lines
637 B
TypeScript
27 lines
637 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.use({
|
|
viewport: {
|
|
height: 800,
|
|
width: 1280,
|
|
},
|
|
});
|
|
|
|
test("test", async ({ page }) => {
|
|
await page.goto("http://localhost:3000/kabelueberwachung");
|
|
await page
|
|
.locator("div")
|
|
.filter({ hasText: /^1KÜ705-FO⚙$/ })
|
|
.getByRole("button")
|
|
.click();
|
|
await page.getByRole("button", { name: "KVz", exact: true }).click();
|
|
await page
|
|
.locator("div")
|
|
.filter({
|
|
hasText: /^Nur Admin-Benutzer können diese Einstellungen ändern\.$/,
|
|
})
|
|
.nth(1)
|
|
.click();
|
|
await page.getByRole("button", { name: "Modal schließen" }).click();
|
|
});
|