23 lines
558 B
TypeScript
23 lines
558 B
TypeScript
import { defineConfig } from 'playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: 'e2e',
|
|
testMatch: '**/*.spec.ts',
|
|
outputDir: 'test-results/playwright',
|
|
globalSetup: './e2e/global-setup.ts',
|
|
timeout: 60_000,
|
|
expect: {
|
|
timeout: 10_000,
|
|
},
|
|
reporter: [['list']],
|
|
workers: 1,
|
|
use: {
|
|
baseURL: process.env.E2E_BASE_URL || 'http://localhost:3000',
|
|
storageState: 'e2e/.auth/admin.json',
|
|
headless: true,
|
|
viewport: { width: 1280, height: 720 },
|
|
screenshot: 'only-on-failure',
|
|
trace: 'retain-on-failure',
|
|
},
|
|
});
|