import { defineConfig, devices } from "@playwright/test"; import { resolveE2EExecutionMode } from "./tests/e2e/support/e2e-contract"; resolveE2EExecutionMode(process.env); export default defineConfig({ testDir: "./tests/e2e", testIgnore: "**/e2e-contract.test.ts", timeout: 30_000, expect: { timeout: 5_000 }, fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, reporter: [["html", { open: "never" }]], use: { baseURL: process.env.E2E_BASE_URL, testIdAttribute: "data-testid", trace: "on-first-retry", screenshot: "only-on-failure", video: "retain-on-failure", }, projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], });