/**
 * Playwright config for testing against live Mac Mini instance.
 * No webServer — assumes https://macmini:3007 is already running.
 *
 * Usage: npx playwright test --config=e2e/playwright-live.config.ts
 */

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

export default defineConfig({
  testDir: './specs',
  fullyParallel: true,
  retries: 0,
  workers: 3,
  reporter: [
    ['html', { outputFolder: 'e2e/reports/html' }],
    ['list'],
  ],
  use: {
    baseURL: process.env.PLAYWRIGHT_BASE_URL || 'https://macmini:3007',
    ignoreHTTPSErrors: true,
    screenshot: 'on',
    trace: 'on-first-retry',
  },
  projects: [
    { name: 'chromium', use: { ...devices['Desktop Chrome'] } },
  ],
  outputDir: 'e2e/test-results',
  timeout: 20000,
  expect: { timeout: 5000 },
  // No webServer — we test against the live instance
})
