import { defineConfig, devices } from '@playwright/test'; /** * Runs against a running stack rather than starting one, so the same specs cover the * compose stack and a local `pnpm dev`. Point E2E_BASE_URL at whichever you are using. */ const baseURL = process.env['E2E_BASE_URL'] ?? 'http://127.0.0.1:3000'; export default defineConfig({ testDir: './e2e', fullyParallel: true, forbidOnly: Boolean(process.env['CI']), retries: process.env['CI'] ? 2 : 0, reporter: process.env['CI'] ? 'github' : 'list', use: { baseURL, trace: 'on-first-retry' }, projects: [ { name: 'mobile', use: { ...devices['Pixel 7'] } }, { name: 'desktop', use: { ...devices['Desktop Chrome'] } }, ], });