import type { PlaywrightTestConfig } from '@playwright/test'; import { devices } from '@playwright/test'; const config: PlaywrightTestConfig = { testDir: './tests', timeout: 300 * 1000, expect: { timeout: 65000, }, retries: 2, fullyParallel: true, forbidOnly: !!process.env.CI, workers: process.env.CI ? 1 : undefined, reporter: [['html']], use: { actionTimeout: 65000, navigationTimeout: 30000, baseURL: 'http://localhost:3000', trace: 'off', viewport: { width: 1280, height: 720 }, screenshot: 'only-on-failure', video: 'retain-on-failure', headless: true, launchOptions: { slowMo: 100, args: [ '--disable-dev-shm-usage', '--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu', '--disable-web-security', ], }, }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, ], webServer: { command: 'cd ../dapp && bun run dev', port: 3000, reuseExistingServer: !process.env.CI, timeout: 120000, stdout: 'pipe', stderr: 'pipe', }, }; export default config;