import { defineConfig, devices } from '@playwright/test' export default defineConfig({ testDir: './tests', timeout: 60 * 1000, expect: { timeout: 5 * 1000 }, reporter: [ ['html', { open: 'never', outputFolder: 'playwright-report' }], ['json', { outputFile: 'test-results/results.json' }], ['list'] ], use: { baseURL: process.env.ERP_BASE_URL || 'http://localhost:5183', headless: true, viewport: { width: 1440, height: 900 }, ignoreHTTPSErrors: true, screenshot: 'on', video: 'on', trace: 'on' }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] } } ] })