test: npx playwright test erfolgreich

This commit is contained in:
ISA
2025-09-03 15:58:11 +02:00
parent 11bd68200b
commit 57ffdecb10
24 changed files with 308 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
import { test, expect } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
test("AnalogInputsChartModal opens after clicking chart button", async ({
page,
}) => {
await page.goto("/analogInputs");
// Öffne Modal via Chart-Button (📈)
await highlightAndExpectVisible(
page,
page.getByRole("button", { name: "Messkurve anzeigen" })
);
await page
.getByRole("button", { name: "Messkurve anzeigen" })
.first()
.click();
await highlightAndExpectVisible(page, page.getByRole("dialog"));
await expect(page.getByRole("dialog")).toBeVisible();
});