test: npx playwright test erfolgreich
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
Reference in New Issue
Block a user