chore: move playwright components folder to tests

This commit is contained in:
ISA
2025-09-05 10:25:31 +02:00
parent 8a9cd72718
commit 8c88aa843c
32 changed files with 39 additions and 87 deletions

View File

@@ -0,0 +1,17 @@
import { test } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
test("AnalogInputsSettingsModal opens after clicking settings", async ({
page,
}) => {
await page.goto("/analogInputs");
// Wähle die erste Tabellenzeile und in der 5. Spalte (Einstellungen) den Button
const firstRow = page.locator("table tbody tr").first();
const settingsButton = firstRow.locator("td").nth(4).locator("button");
await highlightAndExpectVisible(page, settingsButton);
await settingsButton.click();
await highlightAndExpectVisible(
page,
page.getByRole("button", { name: "Modal schließen" })
);
});