ERP-node/frontend/playwright.config.ts

31 lines
611 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
workers: 1,
reporter: "html",
timeout: 60_000,
expect: { timeout: 10_000 },
use: {
baseURL: "http://localhost:9771",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "on-first-retry",
actionTimeout: 15_000,
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1024, height: 800 },
},
},
],
});