Files
core/tests/e2e/playwright.config.ts
T
Abílio Costa 39e32ce0b2 Add playwright to e2e tests workflow (#176520)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-17 18:53:06 +02:00

22 lines
518 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
const baseURL = process.env.BASE_URL ?? "http://localhost:8123";
export default defineConfig({
testDir: ".",
timeout: 30_000,
// Reruns a failed test once in CI to absorb transient startup flakiness.
retries: process.env.CI ? 1 : 0,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL,
trace: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});