import { defineConfig } from '@playwright/test'; export default defineConfig({ testDir: './tests/e2e', testMatch: '**/*.spec.ts', fullyParallel: false, timeout: 5 * 60 * 1000, expect: { timeout: 30_000, }, retries: process.env.CI ? 1 : 0, 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'], }, }, });