shinkan-jinkendo/playwright.config.js
Lars fe86d763ad
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 1m29s
refactor: enhance environment configuration and CI workflow for improved flexibility
- Updated .env.example to provide clearer instructions and examples for production and development environments.
- Refactored docker-compose files to utilize environment variables for database and application settings, improving configurability.
- Enhanced .gitea/workflows/test.yml to streamline E2E testing setup, ensuring consistent handling of environment variables across different stages.
2026-04-29 13:33:28 +02:00

21 lines
589 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:3098
const rawBase =
process.env.PLAYWRIGHT_BASE_URL ||
process.env.BASE_URL ||
'http://127.0.0.1:3098';
module.exports = {
testDir: './tests',
timeout: 30000,
use: {
// channel: 'chrome', // Entfernt: nutze Standard-Chromium statt Google Chrome
headless: true,
viewport: { width: 390, height: 844 },
screenshot: 'only-on-failure',
baseURL: rawBase.replace(/\/$/, ''),
},
reporter: 'list',
};