Files
AITrader/playwright.config.ts

20 lines
599 B
TypeScript

import type { PlaywrightTestConfig } from "@playwright/test";
// NOTE: In CI, do not specify Playwright 'projects' by name — use the default project.
// Also ensure webServer.timeout is large enough in CI to allow the app to start (increase if needed).
const config: PlaywrightTestConfig = {
testDir: "./tests",
webServer: {
command: "npm run dev",
port: 5173,
timeout: 120000,
},
use: {
trace: "on-first-retry",
headless: !!process.env.CI,
viewport: { width: 1280, height: 800 },
},
reporter: [["html", { output: "test-results" }]],
};
export default config;