28 lines
760 B
JavaScript
28 lines
760 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",
|
|
testIgnore: "**/production/**",
|
|
fullyParallel: true,
|
|
// Le serveur Vite partagé compile les outils lazy à la première visite.
|
|
workers: 2,
|
|
reporter: [["list"], ["html", { open: "never" }]],
|
|
use: {
|
|
baseURL: "http://localhost:5173",
|
|
trace: "retain-on-failure",
|
|
screenshot: "only-on-failure"
|
|
},
|
|
webServer: {
|
|
command: "npm run dev",
|
|
url: "http://localhost:5173",
|
|
reuseExistingServer: true,
|
|
timeout: 120000
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] }
|
|
}
|
|
]
|
|
});
|