evcc-io/playwright.config.js
2025-04-06 14:57:22 +02:00

28 lines
643 B
JavaScript

import { defineConfig, devices } from "@playwright/test";
/**
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
testDir: "./tests",
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 4 : 0,
timeout: 30000, // default 30s
workers: process.env.CI ? 3 : 4,
reporter: "html",
use: {
baseURL: "http://127.0.0.1:7070",
trace: "on-first-retry",
video: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1400, height: 1400 },
},
},
],
});