Kairo-Jinkendo/playwright.config.js
Lars 848452f837
Some checks failed
Test Suite / lint-backend (push) Waiting to run
Test Suite / build-frontend (push) Waiting to run
Test Suite / k6 /health Baseline (push) Waiting to run
Test Suite / playwright-tests (push) Waiting to run
Deploy Development / deploy (push) Failing after 1s
Test Suite / pytest-backend (push) Has been cancelled
Infrastruktur-Grundgeruest fuer Kairo Jinkendo: Docker, Gitea Actions, Deployment-Doku (ohne App-Code).
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 18:15:24 +02:00

20 lines
505 B
JavaScript

// CI: PLAYWRIGHT_BASE_URL = öffentliche Dev-/Prod-URL (HTTPS über Reverse Proxy), nicht localhost
// Lokal: export PLAYWRIGHT_BASE_URL=http://192.168.x.x:3097
const rawBase =
process.env.PLAYWRIGHT_BASE_URL ||
process.env.BASE_URL ||
'http://127.0.0.1:3097';
module.exports = {
testDir: './tests',
timeout: 30000,
use: {
headless: true,
viewport: { width: 390, height: 844 },
screenshot: 'only-on-failure',
baseURL: rawBase.replace(/\/$/, ''),
},
reporter: 'list',
};