fix: playwright config

This commit is contained in:
ISA
2025-08-29 10:38:31 +02:00
parent 7a4e6d92c2
commit 0e7b2e53aa
7 changed files with 25 additions and 34 deletions

View File

@@ -1,16 +1,22 @@
steps:
- name: install-dependencies
image: node:22
environment:
NODE_PATH: /var/jenkins_home/.npm/node_modules
NPM_CONFIG_CACHE: /var/jenkins_home/.npm
commands:
- echo "📦 Installing dependencies..."
- npm install --prefer-offline --no-audit
- name: install-playwright
image: node:22
commands:
- npx playwright install # wichtig: vollständige Installation
- echo "🧩 Installing Playwright and required browsers..."
- npx playwright install # vollständige Installation inkl. Chromium & headless_shell
- npx playwright install-deps
- name: run-tests
image: node:22
commands:
- echo "🧪 Running Playwright tests (Chromium only)..."
- npx playwright test --project=chromium