Files
AgentCompany/tests/e2e/playwright.config.ts
T
ZacharyZhang-NY 9d01a7acc4 feat(04-03): add platform launch E2E test with screenshot capture
- Add second test to desktop.smoke.spec.ts validating app launch, window dimensions, and screenshot capture
- Screenshot saved to build/screenshots/launch-{platform}.png for D-07 evidence
- Update playwright.config.ts with outputDir for test artifacts and join import
- Add xvfb-run note for headless Linux CI environments
2026-03-22 16:50:59 -04:00

21 lines
621 B
TypeScript

import { join } from "node:path";
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: ".",
testMatch: ["desktop.smoke.spec.ts"],
timeout: 120_000,
fullyParallel: false,
workers: 1,
reporter: "list",
outputDir: join(process.cwd(), "build", "test-results"),
use: {
trace: "on-first-retry",
screenshot: "only-on-failure",
},
// Build from current source before running e2e tests.
// Uses globalSetup (not webServer) because electron-vite build is a
// one-shot build command, not a long-running server process.
globalSetup: "./e2e-global-setup.ts",
});