2026-04-29 12:35:30 +02:00
|
|
|
// CI: PLAYWRIGHT_BASE_URL=http://127.0.0.1:3098 nach docker compose dev-env
|
|
|
|
|
// Lokal gegen LAN/Dev: 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';
|
|
|
|
|
|
2026-04-22 16:33:03 +02:00
|
|
|
module.exports = {
|
|
|
|
|
testDir: './tests',
|
|
|
|
|
timeout: 30000,
|
|
|
|
|
use: {
|
2026-04-22 22:09:17 +02:00
|
|
|
// channel: 'chrome', // Entfernt: nutze Standard-Chromium statt Google Chrome
|
2026-04-22 16:33:03 +02:00
|
|
|
headless: true,
|
|
|
|
|
viewport: { width: 390, height: 844 },
|
|
|
|
|
screenshot: 'only-on-failure',
|
2026-04-29 12:35:30 +02:00
|
|
|
baseURL: rawBase.replace(/\/$/, ''),
|
2026-04-22 16:33:03 +02:00
|
|
|
},
|
|
|
|
|
reporter: 'list',
|
|
|
|
|
};
|