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