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

/**
 * Playwright config for POC testing phase — runs against production site.
 * No local webServer, no testIgnore — runs ALL E2E tests.
 *
 * Usage:
 *   npx playwright test --config=playwright.poc.config.ts
 *   npx playwright test --config=playwright.poc.config.ts e2e/smoke-live-site.spec.ts
 */
export default defineConfig({
  testDir: './e2e',
  fullyParallel: true,
  retries: 1,
  workers: 2,
  reporter: [['list'], ['html', { open: 'never' }]],
  timeout: 30000,

  use: {
    baseURL: process.env.SMOKE_BASE_URL || 'https://llmhosts.com',
    trace: 'retain-on-failure',
    screenshot: 'on',
    video: 'retain-on-failure',
  },

  projects: [
    {
      name: 'desktop-chrome',
      use: { ...devices['Desktop Chrome'] },
    },
  ],
});
