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,15 @@
import { test } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
test("AnalogInputsDatePicker renders two inputs", async ({ page }) => {
await page.goto("/analogInputs");
// Öffne erst die Chart-Ansicht (enthält den DatePicker)
const chartBtn = page
.getByRole("button", { name: "Messkurve anzeigen" })
.first();
await highlightAndExpectVisible(page, chartBtn);
await chartBtn.click();
await highlightAndExpectVisible(page, page.getByRole("dialog"));
await highlightAndExpectVisible(page, page.getByText("Von"));
await highlightAndExpectVisible(page, page.getByText("Bis"));
});