shinkan-jinkendo/playwright.config.js
Lars f4a86f9726
Some checks failed
Deploy Development / deploy (push) Successful in 38s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 7s
Test Suite / playwright-tests (push) Failing after 6s
refactor: update docker-compose and CI workflow for improved E2E testing
- Removed fixed container names in docker-compose.dev-env.yml to prevent conflicts during redeploys.
- Enhanced playwright.config.js comments for clarity on base URL usage in different environments.
- Updated .gitea/workflows/test.yml to streamline E2E testing setup, including conditional logic for local and production environments, and improved health check handling after deployment.
2026-04-29 13:12:05 +02:00

21 lines
606 B
JavaScript

// CI: PLAYWRIGHT_BASE_URL — lokal docker dev-env (:3098); nach „Deploy Production“ https://shinkan.jinkendo.de
// 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',
};