- 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
21 lines
621 B
TypeScript
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",
|
|
});
|