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

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runAnalogInputsTest } from "../tests/pages/analogInputs/analogInputsTest";
test("analog inputs page", async ({ page }) => {
await runAnalogInputsTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runDashboardTest } from "../tests/pages/dashboard/dashboardTest";
test("dashboard page", async ({ page }) => {
await runDashboardTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runDigitalInputsTest } from "../tests/pages/digitalInputs/digitalInputsTest";
test("digital inputs page", async ({ page }) => {
await runDigitalInputsTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runDigitalOutputsTest } from "../tests/pages/digitalOutputs/digitalOutputsTest";
test("digital outputs page", async ({ page }) => {
await runDigitalOutputsTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runSettingsPageTest } from "../tests/pages/settingsPage/settingsPageTest";
test("einstellungen page", async ({ page }) => {
await runSettingsPageTest(page);
});

View File

@@ -1,5 +0,0 @@
import { test } from "@playwright/test";
test("index page", async ({ page }) => {
await page.goto("/");
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runCableMonitoringTest } from "../tests/pages/kabelueberwachung/kabelueberwachungTest";
test("kabelueberwachung page", async ({ page }) => {
await runCableMonitoringTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runMeldungenTest } from "../tests/pages/meldungen/meldungenTest";
test("meldungen page", async ({ page }) => {
await runMeldungenTest(page);
});

View File

@@ -1,6 +0,0 @@
import { test } from "@playwright/test";
import { runSystemTest } from "../tests/pages/system/systemTest";
test("system page", async ({ page }) => {
await runSystemTest(page);
});

View File

@@ -1,5 +0,0 @@
import { test } from "@playwright/test";
test("zutrittskontrolle page", async ({ page }) => {
await page.goto("/zutrittskontrolle");
});

View File

@@ -1,9 +1,9 @@
import type { Page } from "@playwright/test";
import { expect } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
// Kombinierte Helper-Funktion: injiziert CSS (nur einmal), hebt hervor und prüft Sichtbarkeit

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runDashboardTest(page: Page) {
await page.goto("/dashboard");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runDigitalInputsTest(page: Page) {
await page.goto("/digitalInputs");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runDigitalOutputsTest(page: Page) {
await page.goto("/digitalOutputs");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runCableMonitoringTest(page: Page) {
await page.goto("/kabelueberwachung");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runMeldungenTest(page: Page) {
await page.goto("/meldungen");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runSettingsPageTest(page: Page) {
await page.goto("/einstellungen");

View File

@@ -1,8 +1,8 @@
import type { Page } from "@playwright/test";
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
import { navTest } from "@/playwright/components/navigation/navTest";
import { headerTest } from "@/playwright/components/header/headerTest";
import { footerTest } from "@/playwright/components/footer/footerTest";
import { navTest } from "@/playwright/tests/components/navigation/navTest";
import { headerTest } from "@/playwright/tests/components/header/headerTest";
import { footerTest } from "@/playwright/tests/components/footer/footerTest";
export async function runSystemTest(page: Page) {
await page.goto("/system");