import { defineConfig, devices } from '@playwright/test'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const BASE_URL = process.env.AIDOP_E2E_BASE_URL ?? 'http://localhost:8888'; const STORAGE_STATE = path.resolve(__dirname, 'tests/e2e/.auth/storage-state.json'); export default defineConfig({ testDir: './tests/e2e', testIgnore: ['**/.auth/**', '**/fixtures/**'], timeout: 120_000, expect: { timeout: 15_000 }, fullyParallel: false, workers: 1, reporter: [['list']], globalSetup: './tests/e2e/global-setup.ts', use: { baseURL: BASE_URL, storageState: STORAGE_STATE, trace: 'retain-on-failure', screenshot: 'only-on-failure', video: 'retain-on-failure', navigationTimeout: 60_000, actionTimeout: 15_000, }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, ], });