import { defineConfig, devices } from '@playwright/test'

export default defineConfig({
  testDir: 'tests/render-verification-react',
  use: {
    baseURL: 'http://localhost:5174',
    viewport: { width: 320, height: 160 },
  },
  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'] },
    },
  ],
  webServer: {
    command: 'pnpm --dir react-pilot exec vite --config harness/vite.harness.config.ts --port 5174',
    url: 'http://localhost:5174',
    reuseExistingServer: true,
    timeout: 120_000,
  },
  testMatch: '**/*.spec.ts',
})
