深度优化 ui

This commit is contained in:
2026-09-29 11:34:18 +08:00
parent 916a4f5ffc
commit 3faf960f35
27 changed files with 6510 additions and 2232 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from "@playwright/test";
export default defineConfig({
testDir: "./tests",
workers: 1,
timeout: 90000,
use: {
baseURL: "http://localhost:3106",
viewport: { width: 1440, height: 1000 },
trace: "retain-on-failure",
},
webServer: {
command: "npm run dev -- --port 3106",
url: "http://localhost:3106/login",
reuseExistingServer: false,
env: {
DATABASE_PATH: `/tmp/hy2-panel-ui-test-${Date.now()}.db`,
POLLER_ENABLED: "false",
ADMIN_USERNAME: "ui-review",
ADMIN_PASSWORD: "ui-review-local-2026",
SESSION_COOKIE_SECURE: "false",
APP_URL: "http://localhost:3106",
},
},
});