Add Playwright visual smoke test
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s

This commit is contained in:
Shinuwa 2026-08-22 23:42:37 +02:00
parent 59fdcb0927
commit 5c8148c905
6 changed files with 107 additions and 1 deletions

25
playwright.config.js Normal file
View file

@ -0,0 +1,25 @@
// 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"] }
}
]
});