Files

36 lines
899 B
TypeScript
Raw Permalink Normal View History

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './playwright-tests',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
reporter: [['list'], ['json', { outputFile: './playwright-tests/playwright-report.json' }]],
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
webServer: [
{
command: 'cd ../backend && npm run dev:ci',
url: 'http://localhost:3001/api/health',
reuseExistingServer: true,
timeout: 120000,
},
{
command: 'npm run dev -- --port 5173',
url: 'http://localhost:5173',
reuseExistingServer: true,
timeout: 120000,
},
],
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], viewport: { width: 1600, height: 1000 } },
},
],
});