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

/** Playwright config for live deployed deck — no fixture collector or dev server. */
export default defineConfig({
  testDir: './apps/web/tests',
  testMatch: 'bots-live.spec.ts',
  fullyParallel: false,
  workers: 1,
  retries: 1,
  reporter: 'list',
  use: {
    baseURL: process.env.OVERDECK_LIVE_URL ?? 'http://127.0.0.1:31337',
    headless: true,
    trace: 'on-first-retry',
    launchOptions: {
      args: ['--disable-dev-shm-usage', '--disable-gpu', '--disable-extensions'],
    },
  },
  projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
})
