test: WIP: digitalInputsTest.ts

This commit is contained in:
ISA
2025-08-28 08:45:10 +02:00
parent c8f3d91f9c
commit 539ebd5ff6
7 changed files with 20 additions and 14 deletions

View File

@@ -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.757
NEXT_PUBLIC_APP_VERSION=1.6.758
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -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.757
NEXT_PUBLIC_APP_VERSION=1.6.758
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.758] 2025-08-28
- fix: Jenkinsfile
---
## [1.6.757] 2025-08-28
- feat: Jenkinsfile

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.757",
"version": "1.6.758",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.757",
"version": "1.6.758",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.757",
"version": "1.6.758",
"private": true,
"scripts": {
"dev": "next dev",

View File

@@ -2,11 +2,11 @@ import { test } from "../fixtures";
import { runDashboardTest } from "./dashboardTest";
import { runAnalogInputsTest } from "./analogInputsTest";
import { runSettingsPageTest } from "./settingsPageTest";
import "./digitalInputsTest";
import { runDigitalInputsTest } from "./digitalInputsTest";
test("Dashboard, AnalogInputs und SettingsPage", async ({ page }) => {
await runDashboardTest(page);
await runAnalogInputsTest(page);
await runSettingsPageTest(page);
//await runDashboardTest(page);
//await runAnalogInputsTest(page);
//await runSettingsPageTest(page);
await runDigitalInputsTest(page);
});

View File

@@ -1,7 +1,8 @@
import { test, expect } from "@playwright/test";
import type { Page } from "@playwright/test";
import { expect } from "@playwright/test";
test("test", async ({ page }) => {
await page.goto("http://localhost:3000/digitalInputs");
export async function runDigitalInputsTest(page: Page) {
await page.goto("/digitalInputs");
await expect(
page.getByRole("img", { name: "Logo", exact: true })
).toBeVisible();
@@ -114,4 +115,4 @@ test("test", async ({ page }) => {
page.getByRole("row", { name: "● DE 13" }).locator("span")
).toBeVisible();
await expect(page.getByRole("cell", { name: "DE 13" })).toBeVisible();
});
}