refactoring: test files
This commit is contained in:
@@ -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/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
// Kombinierte Helper-Funktion: injiziert CSS (nur einmal), hebt hervor und prüft Sichtbarkeit
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runDashboardTest(page: Page) {
|
||||
await page.goto("/dashboard");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runDigitalInputsTest(page: Page) {
|
||||
await page.goto("/digitalInputs");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runDigitalOutputsTest(page: Page) {
|
||||
await page.goto("/digitalOutputs");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runCableMonitoringTest(page: Page) {
|
||||
await page.goto("/kabelueberwachung");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runMeldungenTest(page: Page) {
|
||||
await page.goto("/meldungen");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runSettingsPageTest(page: Page) {
|
||||
await page.goto("/einstellungen");
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
import { highlightAndExpectVisible } from "@playwright/utils/highlight";
|
||||
import { navTest } from "@playwright/components/navTest";
|
||||
import { navTest } from "@/playwright/components/navigation/navTest";
|
||||
import { headerTest } from "@/playwright/components/header/headerTest";
|
||||
import { footerTest } from "@playwright/components/footerTest";
|
||||
import { footerTest } from "@/playwright/components/footer/footerTest";
|
||||
|
||||
export async function runSystemTest(page: Page) {
|
||||
await page.goto("/system");
|
||||
|
||||
Reference in New Issue
Block a user