import { defineConfig } from '@playwright/test'; export default defineConfig({ testDir: './tests/e2e', testMatch: process.env.CI ? '[0-9]*.spec.ts' : '**/*.spec.ts', fullyParallel: false, timeout: 10 * 60 * 1000, // Increased from 5 to 10 minutes for persona journeys with multiple buys expect: { timeout: 30_000, }, retries: process.env.CI ? 1 : 0, workers: process.env.CI ? 1 : undefined, use: { headless: true, viewport: { width: 1280, height: 720 }, // Set screen dimensions to match viewport - required for proper isMobile detection // The webapp uses screen.width (not window.innerWidth) to detect mobile screen: { width: 1280, height: 720 }, actionTimeout: 0, launchOptions: { args: ['--disable-dev-shm-usage', '--no-sandbox'], }, }, });