From 89dc26b0d2aceaa8e70979e7a12936ba5af08f1f Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 2 Sep 2025 11:25:25 +0200 Subject: [PATCH] Test: nav ausgelagert --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++ package-lock.json | 4 +- package.json | 2 +- playwright/components/navTest.ts | 1 - .../tests/pages/dashboard/dashboardTest.ts | 37 ++----------------- 7 files changed, 13 insertions(+), 40 deletions(-) diff --git a/.env.development b/.env.development index b33cd61..19e955f 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.809 +NEXT_PUBLIC_APP_VERSION=1.6.810 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 646452f..348fe34 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.809 +NEXT_PUBLIC_APP_VERSION=1.6.810 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index dde5abd..439bcba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.810] – 2025-09-02 + +- Test: done + +--- ## [1.6.809] – 2025-09-02 - chore: remove jsconfig.json, project uses only tsconfig.json for path aliases diff --git a/package-lock.json b/package-lock.json index 16ec001..12f1e9a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.809", + "version": "1.6.810", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.809", + "version": "1.6.810", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 333acc8..4de7328 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.809", + "version": "1.6.810", "private": true, "scripts": { "dev": "next dev -p 3000", diff --git a/playwright/components/navTest.ts b/playwright/components/navTest.ts index 2bbe84f..1ea3e16 100644 --- a/playwright/components/navTest.ts +++ b/playwright/components/navTest.ts @@ -2,7 +2,6 @@ import type { Page } from "@playwright/test"; import { highlightAndExpectVisible } from "@playwright/utils/highlight"; export async function navTest(page: Page) { - await page.goto("http://localhost:3000/dashboard"); await highlightAndExpectVisible( page, page.getByRole("link", { name: "Übersicht" }) diff --git a/playwright/tests/pages/dashboard/dashboardTest.ts b/playwright/tests/pages/dashboard/dashboardTest.ts index b58de78..89f1e04 100644 --- a/playwright/tests/pages/dashboard/dashboardTest.ts +++ b/playwright/tests/pages/dashboard/dashboardTest.ts @@ -1,6 +1,6 @@ import type { Page } from "@playwright/test"; import { highlightAndExpectVisible } from "@playwright/utils/highlight"; - +import { navTest } from "@playwright/components/navTest"; export async function runDashboardTest(page: Page) { await page.goto("http://localhost:3000/dashboard"); await highlightAndExpectVisible( @@ -65,39 +65,8 @@ export async function runDashboardTest(page: Page) { page, page.getByRole("link", { name: "Berichte" }) ); - await highlightAndExpectVisible( - page, - page.getByRole("link", { name: "System" }) - ); - await highlightAndExpectVisible( - page, - page.getByRole("link", { name: "Einstellungen" }) - ); - await highlightAndExpectVisible( - page, - page.getByRole("heading", { name: "Versionsinformationen" }) - ); - await highlightAndExpectVisible( - page, - page - .locator("div") - .filter({ hasText: /^Applikationsversion: 0\.02$/ }) - .locator("svg") - ); - await highlightAndExpectVisible( - page, - page - .locator("div") - .filter({ hasText: /^Webversion: 1\.6/ }) - .locator("path") - ); - await highlightAndExpectVisible( - page, - page - .locator("div") - .filter({ hasText: /^1KÜ705FO$/ }) - .first() - ); + // Navigation-Tests ausgelagert: + await navTest(page); await highlightAndExpectVisible( page, page