Test onboarding visibility in production builds
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s

This commit is contained in:
Shinuwa 2026-09-13 20:55:46 +02:00
parent 6de016ec7b
commit 713bc3b70e
9 changed files with 87 additions and 4 deletions

View file

@ -0,0 +1,21 @@
// Rôle : vérifie le build de production sans réutiliser une instance Vite de développement.
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./e2e/production",
workers: 1,
outputDir: "test-results/production",
reporter: [["list"], ["html", { open: "never", outputFolder: "playwright-report/production" }]],
use: {
baseURL: "http://127.0.0.1:4173",
trace: "retain-on-failure",
screenshot: "only-on-failure"
},
webServer: {
command: "npm run preview -- --host 127.0.0.1 --port 4173 --strictPort",
url: "http://127.0.0.1:4173",
reuseExistingServer: false,
timeout: 120000
},
projects: [{ name: "chromium-production", use: { ...devices["Desktop Chrome"] } }]
});