1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 13:59:36 +01:00

init e2e ui tests base skeleton

This commit is contained in:
Janosch 2026-03-27 09:41:35 +01:00
parent 83c7321c8f
commit c84629cc4e
16 changed files with 1219 additions and 0 deletions

View file

@ -0,0 +1,31 @@
import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: true,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 4 : undefined,
reporter: [
['html', { outputFolder: 'playwright-report' }],
['junit', { outputFile: 'test-results/junit.xml' }],
],
use: {
baseURL: process.env.BASE_URL ?? 'http://localhost:8080',
extraHTTPHeaders: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
},
projects: [
{
name: 'api',
testMatch: 'tests/api/**/*.spec.ts',
// Kein Browser nötig reiner API-Test via request context
},
{
name: 'web-chromium',
testMatch: 'tests/web/**/*.spec.ts',
use: { browserName: 'chromium' },
},
],
});