test: find mock
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
# .woodpecker.yml
|
||||
# Next.js + Playwright im DEV-Modus (webServer aus playwright.config.ts)
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
@@ -14,20 +11,27 @@ when:
|
||||
- event: pull_request
|
||||
|
||||
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
|
||||
# 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
|
||||
environment:
|
||||
CI: "true"
|
||||
NODE_ENV: "development"
|
||||
NEXT_TELEMETRY_DISABLED: "1"
|
||||
TZ: "Europe/Berlin"
|
||||
LANG: "C.UTF-8"
|
||||
# Falls dein webServer auf 3000 hört:
|
||||
PORT: "3000"
|
||||
commands:
|
||||
- node -v && npm -v
|
||||
- npm ci
|
||||
# KEIN manueller Serverstart hier – Playwright webServer übernimmt das!
|
||||
- npx playwright test --project=chromium
|
||||
|
||||
Reference in New Issue
Block a user