import { defineConfig } from '@playwright/test'; // Separate from playwright.config.ts on purpose: the Electron smoke suite // launches its own app (which boots its own standalone Next.js server via // electron/main.ts - see scripts/build-electron.mjs), so it must NOT inherit // the main config's `webServer` (which starts `npm run dev` on :3000 for the // browser-based e2e/*.spec.ts suite) - the two would fight over nothing but // still waste time starting a server this suite never touches. export default defineConfig({ testDir: './e2e', testMatch: 'electron-smoke.spec.ts', timeout: 60000, retries: 0, use: { trace: 'retain-on-failure', }, // Electron tests drive their own app windows via the `_electron` fixture, // not a browser project - one worker keeps main-process/server startup // logs and any zombie processes easy to reason about. workers: 1, });