import { defineConfig } from '@playwright/test';

// e2e runs against the production build in dist/, served by plain python
// http.server — which doubles as proof that dist serves statically.
export default defineConfig({
  testDir: './tests',
  timeout: 60_000,
  fullyParallel: false,
  workers: 1,
  reporter: [['list']],
  use: {
    baseURL: 'http://127.0.0.1:4178',
    viewport: { width: 960, height: 540 },
  },
  webServer: {
    command: 'python3 -m http.server 4178 --bind 127.0.0.1 --directory dist',
    url: 'http://127.0.0.1:4178/',
    reuseExistingServer: true,
  },
});
