diff --git a/.env.development b/.env.development index 517701a..a2289be 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.812 +NEXT_PUBLIC_APP_VERSION=1.6.813 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 aec12f3..614c06b 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.812 +NEXT_PUBLIC_APP_VERSION=1.6.813 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6555d93..1ceff7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.813] – 2025-09-02 + +- WIP: Test fehlgeschlagen + +--- ## [1.6.812] – 2025-09-02 - test: extracted navigation tests to separate file diff --git a/package-lock.json b/package-lock.json index 6ea37d9..c51a6ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.812", + "version": "1.6.813", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.812", + "version": "1.6.813", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 7774ad2..8423db6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.812", + "version": "1.6.813", "private": true, "scripts": { "dev": "next dev -p 3000", diff --git a/playwright/tests/all.test.ts b/playwright/tests/all.test.ts index 66961c5..d7f544f 100644 --- a/playwright/tests/all.test.ts +++ b/playwright/tests/all.test.ts @@ -9,9 +9,9 @@ import { runSystemTest } from "./pages/system/systemTest"; import { runSettingsPageTest } from "./pages/settingsPage/settingsPageTest"; test("Dashboard, AnalogInputs und SettingsPage", async ({ page }) => { - // await runDashboardTest(page); - // await runCableMonitoringTest(page); - // await runDigitalInputsTest(page); + await runDashboardTest(page); + await runCableMonitoringTest(page); + await runDigitalInputsTest(page); await runDigitalOutputsTest(page); await runAnalogInputsTest(page); await runMeldungenTest(page); diff --git a/playwright/tests/pages/analogInputs/analogInputsTest.ts b/playwright/tests/pages/analogInputs/analogInputsTest.ts index 4712e76..6bcfff6 100644 --- a/playwright/tests/pages/analogInputs/analogInputsTest.ts +++ b/playwright/tests/pages/analogInputs/analogInputsTest.ts @@ -128,17 +128,18 @@ export async function runAnalogInputsTest(page: Page) { .getByLabel("Messkurve anzeigen") ); - await page.getByRole("cell", { name: "1", exact: true }).click(); - await expect(page.locator(".border.p-2.text-center").first()).toBeVisible(); - - await page.locator(".border.p-2.text-center").first().click(); + // Einstellungen-Button in der ersten Datenzeile klicken und auf Modal warten + const firstRow = page.getByRole("row", { name: /1\s+.*AE\s*1/i }); + const settingsButtonInRow = firstRow.getByRole("button").first(); + await settingsButtonInRow.waitFor({ state: "visible", timeout: 10000 }); + await settingsButtonInRow.click(); await expect( - page.getByRole("heading", { name: "Einstellungen Messwerteingang" }) + page.getByRole("heading", { name: /Einstellungen Messwerteingang/ }) ).toBeVisible({ timeout: 15000 }); await highlightAndExpectVisible( page, - page.getByRole("heading", { name: "Einstellungen Messwerteingang" }) + page.getByRole("heading", { name: /Einstellungen Messwerteingang/ }) ); await highlightAndExpectVisible(page, page.getByText("Bezeichnung:")); diff --git a/playwright/tests/pages/digitalOutputs/digitalOutputsTest.ts b/playwright/tests/pages/digitalOutputs/digitalOutputsTest.ts index f8865aa..baca3ee 100644 --- a/playwright/tests/pages/digitalOutputs/digitalOutputsTest.ts +++ b/playwright/tests/pages/digitalOutputs/digitalOutputsTest.ts @@ -1,4 +1,5 @@ import type { Page } from "@playwright/test"; +import { expect } from "@playwright/test"; import { highlightAndExpectVisible } from "@playwright/utils/highlight"; import { navTest } from "@playwright/components/navTest"; import { headerTest } from "@playwright/components/headerTest"; @@ -52,22 +53,4 @@ export async function runDigitalOutputsTest(page: Page) { page.getByRole("cell", { name: "3", exact: true }).click(); page.getByRole("cell", { name: "4", exact: true }).locator("svg").click(); page.getByRole("cell", { name: "4", exact: true }).click(); - page.getByRole("cell", { name: "Ausgang2" }).first().click(); - - page.getByRole("row", { name: "1 Ausgang2" }).locator("path").nth(1).click(); - page.getByRole("row", { name: "1 Ausgang2" }).locator("path").nth(1).click(); - page.getByRole("row", { name: "2 Ausgang2" }).locator("path").nth(1).click(); - page.getByRole("row", { name: "2 Ausgang2" }).locator("svg").nth(1).click(); - page.getByRole("row", { name: "1 Ausgang2" }).locator("path").nth(2).click(); - page.getByRole("row", { name: "1 Ausgang2" }).locator("svg").nth(2).click(); - page.getByRole("button", { name: "Modal schließen" }).click(); - page.getByRole("row", { name: "2 Ausgang2" }).locator("svg").nth(2).click(); - page.getByRole("button", { name: "Modal schließen" }).click(); - page.getByRole("row", { name: "1 Ausgang2" }).locator("svg").nth(2).click(); - page.getByRole("heading", { name: "Einstellungen Schaltausgang" }).click(); - page.getByText("Bezeichnung:").click(); - page.getByRole("textbox", { name: "z. B. Licht Relais" }).click(); - - page.getByRole("button", { name: "Modal schließen" }).click(); - page.getByRole("row", { name: "2 Ausgang2" }).locator("path").nth(2).click(); }