sokko-g/playwright.config.js
Shinuwa 5c8148c905
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
Add Playwright visual smoke test
2026-08-22 23:42:37 +02:00

25 lines
631 B
JavaScript

// Rôle : configure les diagnostics navigateur Playwright sans les intégrer au check de prod.
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e",
fullyParallel: true,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: "http://localhost:5173",
trace: "on-first-retry",
screenshot: "only-on-failure"
},
webServer: {
command: "npm run dev",
url: "http://localhost:5173",
reuseExistingServer: true,
timeout: 120000
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] }
}
]
});