// Real-browser tests: a production build of the app on its own port with a throwaway database, driven in Chrome. // Run with `npm run test:e2e`. It uses the Chrome already on this computer (no browser download). import { defineConfig } from '@playwright/test'; export default defineConfig({ testDir: './e2e', timeout: 60_000, expect: { timeout: 10_000 }, fullyParallel: false, workers: 1, reporter: [['list']], use: { baseURL: 'http://localhost:3101', channel: 'chrome', trace: 'retain-on-failure' }, webServer: { command: 'bash e2e/start-server.sh', url: 'http://localhost:3101/', timeout: 120_000, reuseExistingServer: false }, projects: [ { name: 'setup', testMatch: /auth\.setup\.js/ }, { name: 'chrome', testMatch: /.*\.spec\.js/, dependencies: ['setup'], use: { storageState: 'e2e/.auth.json' } }, ], });