import { defineConfig } from '@playwright/test'; export default defineConfig({ testDir: './tests/browser', testMatch: '*.spec.mjs', timeout: 60000, expect: { timeout: 15000 }, fullyParallel: false, retries: process.env.CI ? 2 : 0, workers: 1, reporter: process.env.CI ? 'github' : 'list', use: { baseURL: 'http://127.0.0.1:3911', trace: 'on-first-retry', screenshot: 'only-on-failure', }, projects: [ { name: 'desktop', use: { viewport: { width: 1440, height: 900 }, browserName: 'chromium', launchOptions: { args: ['--no-sandbox', '--disable-setuid-sandbox'] }, }, }, { name: 'mobile', use: { viewport: { width: 390, height: 844 }, browserName: 'chromium', launchOptions: { args: ['--no-sandbox', '--disable-setuid-sandbox'] }, }, }, ], });