Files
nat-as-server/playwright.config.ts
tom.hempel 06fc134299
Some checks failed
Tests / test (push) Has been cancelled
just testing the environment
2026-05-20 07:10:08 +02:00

30 lines
826 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
const baseURL = 'http://127.0.0.1:8080';
export default defineConfig({
testDir: './e2e',
fullyParallel: false,
workers: 1,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: 'list',
use: {
baseURL,
trace: 'on-first-retry',
},
projects: [
{ name: 'api', testMatch: /api\/.*\.spec\.ts/ },
{ name: 'website', testMatch: /website\/.*\.spec\.ts/, use: { ...devices['Desktop Chrome'] } },
],
globalSetup: './e2e/global-setup.js',
webServer: {
command: 'php -S 127.0.0.1:8080 dev-router.php',
url: baseURL + '/website/',
reuseExistingServer: !process.env.CI,
env: {
QDB_MASTER_KEY: 'dGVzdC1tYXN0ZXIta2V5LXRoaXQtMzJieXRzIQ==',
},
},
});