20 lines
626 B
TypeScript
20 lines
626 B
TypeScript
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();
|
|
});
|