Repository Public
1import { defineConfig, devices } from '@playwright/test';23/**4 * REAL end-to-end suite: the production static export served by the real server, the real worker,5 * real PostgreSQL and REAL models (volume tier). It costs money (a few cents) and needs6 * ~/.config/agent-os/dev.env. Build first (`pnpm -r build`, a normal build without test hooks):7 * pnpm exec playwright test -c playwright.real.config.ts8 * The global setup RESETS the dev stack (database agent_os_dev, /tmp/aos-dev-data,9 * /tmp/aos-dev-workspace) so that the first-run flow is exercised, and starts it with10 * scripts/dev-up.sh; the teardown stops it with scripts/dev-down.sh.11 */12export default defineConfig({13 testDir: './e2e-real',14 outputDir: './test-results-real',15 fullyParallel: false,16 workers: 1,17 retries: 0,18 timeout: 8 * 60_000,19 expect: { timeout: 20_000 },20 reporter: [['list']],21 globalSetup: './e2e-real/global-setup.ts',22 globalTeardown: './e2e-real/global-teardown.ts',23 // The origin must be exactly AOS_PUBLIC_ORIGIN (cookie scope, Origin check).24 use: { baseURL: 'http://localhost:8640', trace: 'retain-on-failure', actionTimeout: 15_000 },25 projects: [{ name: 'real', use: { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 } } }],26});27