test: find mock

This commit is contained in:
ISA
2025-09-01 16:28:32 +02:00
parent 30f156934c
commit 43fe9e2065
6 changed files with 24 additions and 15 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.799 NEXT_PUBLIC_APP_VERSION=1.6.800
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) 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_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.799 NEXT_PUBLIC_APP_VERSION=1.6.800
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,6 +1,3 @@
# .woodpecker.yml
# Next.js + Playwright im DEV-Modus (webServer aus playwright.config.ts)
clone: clone:
git: git:
image: woodpeckerci/plugin-git image: woodpeckerci/plugin-git
@@ -14,20 +11,27 @@ when:
- event: pull_request - event: pull_request
steps: steps:
- name: verify-mocks
image: mcr.microsoft.com/playwright:v1.54.2-jammy
commands:
- pwd
- node -v && npm -v
- npm ci
# Zeig mir, ob die Datei wirklich im Checkout liegt:
- echo "=== git ls-files ==="
- git ls-files | grep -i "^mocks/device-cgi-simulator/SERVICE/systemMockData.js" || true
- echo "=== ls -la ==="
- ls -la mocks/device-cgi-simulator/SERVICE || true
- echo "=== file exists? ==="
- test -f mocks/device-cgi-simulator/SERVICE/systemMockData.js && echo "FOUND" || (echo "MISSING" && exit 1)
- name: e2e-dev - name: e2e-dev
# Image-Version MUSS zu deiner @playwright/test-Version passen!
# Falls dein package.json 1.54.x nutzt, ist dieses Image korrekt:
image: mcr.microsoft.com/playwright:v1.54.2-jammy image: mcr.microsoft.com/playwright:v1.54.2-jammy
environment: environment:
CI: "true" CI: "true"
NODE_ENV: "development" NODE_ENV: "development"
NEXT_TELEMETRY_DISABLED: "1" NEXT_TELEMETRY_DISABLED: "1"
TZ: "Europe/Berlin"
LANG: "C.UTF-8"
# Falls dein webServer auf 3000 hört:
PORT: "3000" PORT: "3000"
commands: commands:
- node -v && npm -v
- npm ci - npm ci
# KEIN manueller Serverstart hier Playwright webServer übernimmt das!
- npx playwright test --project=chromium - npx playwright test --project=chromium

View File

@@ -1,3 +1,8 @@
## [1.6.800] 2025-09-01
- fix: TDR Messungstarten statt TDR aktivieren
---
## [1.6.799] 2025-09-01 ## [1.6.799] 2025-09-01
- test: woodpecker dev mode - test: woodpecker dev mode

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.799", "version": "1.6.800",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 3000", "dev": "next dev -p 3000",