From c92f25a9a634906594c3f039589089093785cdfb Mon Sep 17 00:00:00 2001 From: vjrj Date: Sat, 1 Aug 2026 19:07:11 +0200 Subject: [PATCH] fix(ci): run playwright from e2e/, npx --prefix does not change the cwd `npx --prefix e2e playwright test` resolves the binary but keeps the working directory, so playwright would look for playwright.config.js in the app root, find none, and run with defaults against no tests. Caught before tonight's first scheduled run. --- .forgejo/workflows/e2e.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/e2e.yml b/.forgejo/workflows/e2e.yml index b57fba9..dc3f766 100644 --- a/.forgejo/workflows/e2e.yml +++ b/.forgejo/workflows/e2e.yml @@ -110,9 +110,13 @@ jobs: set -e cd src mongosh --host mongo --quiet fuegos e2e/seed.js - npm --prefix e2e ci --no-audit --no-fund - npx --prefix e2e playwright install --with-deps chromium - npx --prefix e2e playwright test + # Dentro de e2e/: playwright busca su playwright.config.js en el + # directorio de trabajo, y `npx --prefix` resuelve el binario pero NO + # cambia el cwd (correría sin config y sin encontrar los tests). + cd e2e + npm ci --no-audit --no-fund + npx playwright install --with-deps chromium + npx playwright test # Sin `actions/upload-artifact` (action JS, ver fase 9 §3): al menos el log # del servidor y la lista de trazas quedan en la salida del job.