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();
|
||||
});
|
||||
@@ -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"));
|
||||
});
|
||||
@@ -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" })
|
||||
);
|
||||
});
|
||||
@@ -0,0 +1,9 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
|
||||
test("AnalogInputsTable renders rows", async ({ page }) => {
|
||||
await page.goto("/analogInputs");
|
||||
await highlightAndExpectVisible(page, page.getByRole("table"));
|
||||
// Mindestens eine Tabellenzeile sichtbar
|
||||
await highlightAndExpectVisible(page, page.locator("tbody tr").first());
|
||||
});
|
||||
@@ -0,0 +1,12 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
|
||||
test("AnalogInputsView shows heading and table", async ({ page }) => {
|
||||
await page.goto("/analogInputs");
|
||||
await highlightAndExpectVisible(
|
||||
page,
|
||||
page.getByRole("heading", { name: "Messwerteingänge" })
|
||||
);
|
||||
await highlightAndExpectVisible(page, page.getByRole("table"));
|
||||
await expect(page.getByRole("table")).toBeVisible();
|
||||
});
|
||||
5
playwright/components/main/analogInputs/xioPMTest.ts
Normal file
5
playwright/components/main/analogInputs/xioPMTest.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { test } from "@playwright/test";
|
||||
|
||||
test.fixme("XioPM visual presence", async ({ page }) => {
|
||||
await page.goto("/analogInputs");
|
||||
});
|
||||
6
playwright/pages/analogInputsTest.ts
Normal file
6
playwright/pages/analogInputsTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runAnalogInputsTest } from "../tests/pages/analogInputs/analogInputsTest";
|
||||
|
||||
test("analog inputs page", async ({ page }) => {
|
||||
await runAnalogInputsTest(page);
|
||||
});
|
||||
6
playwright/pages/dashboardTest.ts
Normal file
6
playwright/pages/dashboardTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runDashboardTest } from "../tests/pages/dashboard/dashboardTest";
|
||||
|
||||
test("dashboard page", async ({ page }) => {
|
||||
await runDashboardTest(page);
|
||||
});
|
||||
6
playwright/pages/digitalInputsTest.ts
Normal file
6
playwright/pages/digitalInputsTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runDigitalInputsTest } from "../tests/pages/digitalInputs/digitalInputsTest";
|
||||
|
||||
test("digital inputs page", async ({ page }) => {
|
||||
await runDigitalInputsTest(page);
|
||||
});
|
||||
6
playwright/pages/digitalOutputsTest.ts
Normal file
6
playwright/pages/digitalOutputsTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runDigitalOutputsTest } from "../tests/pages/digitalOutputs/digitalOutputsTest";
|
||||
|
||||
test("digital outputs page", async ({ page }) => {
|
||||
await runDigitalOutputsTest(page);
|
||||
});
|
||||
6
playwright/pages/einstellungenTest.ts
Normal file
6
playwright/pages/einstellungenTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runSettingsPageTest } from "../tests/pages/settingsPage/settingsPageTest";
|
||||
|
||||
test("einstellungen page", async ({ page }) => {
|
||||
await runSettingsPageTest(page);
|
||||
});
|
||||
5
playwright/pages/indexTest.ts
Normal file
5
playwright/pages/indexTest.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { test } from "@playwright/test";
|
||||
|
||||
test("index page", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
});
|
||||
6
playwright/pages/kabelueberwachungTest.ts
Normal file
6
playwright/pages/kabelueberwachungTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runCableMonitoringTest } from "../tests/pages/kabelueberwachung/kabelueberwachungTest";
|
||||
|
||||
test("kabelueberwachung page", async ({ page }) => {
|
||||
await runCableMonitoringTest(page);
|
||||
});
|
||||
6
playwright/pages/meldungenTest.ts
Normal file
6
playwright/pages/meldungenTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runMeldungenTest } from "../tests/pages/meldungen/meldungenTest";
|
||||
|
||||
test("meldungen page", async ({ page }) => {
|
||||
await runMeldungenTest(page);
|
||||
});
|
||||
6
playwright/pages/systemTest.ts
Normal file
6
playwright/pages/systemTest.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { test } from "@playwright/test";
|
||||
import { runSystemTest } from "../tests/pages/system/systemTest";
|
||||
|
||||
test("system page", async ({ page }) => {
|
||||
await runSystemTest(page);
|
||||
});
|
||||
5
playwright/pages/zutrittskontrolleTest.ts
Normal file
5
playwright/pages/zutrittskontrolleTest.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { test } from "@playwright/test";
|
||||
|
||||
test("zutrittskontrolle page", async ({ page }) => {
|
||||
await page.goto("/zutrittskontrolle");
|
||||
});
|
||||
Reference in New Issue
Block a user