import { existsSync } from "node:fs"; import { defineConfig } from "@playwright/test"; const chromePath = "C:/Program Files/Google/Chrome/Application/chrome.exe"; export default defineConfig({ testDir: "./__e2e__", timeout: 30_000, expect: { timeout: 5_000 }, use: { headless: true, viewport: { width: 900, height: 700 }, launchOptions: existsSync(chromePath) ? { executablePath: chromePath } : {}, }, projects: [{ name: "chromium", use: { browserName: "chromium" } }], });