import { fileURLToPath } from 'url'; import path from 'path'; import { defineConfig, devices } from '@playwright/test'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({ testDir: path.join(__dirname, 'tests'), fullyParallel: false, retries: 0, workers: 1, reporter: [['list']], timeout: 60000, expect: { timeout: 15000 }, use: { baseURL: process.env.FRONTEND_URL || 'http://127.0.0.1:8102', trace: 'retain-on-failure', screenshot: 'only-on-failure', video: 'retain-on-failure', }, projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 } }, }], globalSetup: undefined, });