test(frontend): playwright e2e scaffolding (config + scripts)

This commit is contained in:
2026-09-15 12:00:45 +08:00
parent a3755bcfab
commit b65ea93984
4 changed files with 78 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "e2e",
timeout: 60_000,
use: {
baseURL: process.env.E2E_BASE_URL ?? "http://localhost:5173",
trace: "retain-on-failure",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
});