feat: 支持自定义订阅节点并兼容现有数据库

This commit is contained in:
2026-09-29 11:52:41 +08:00
parent 3faf960f35
commit ab7d1c937a
27 changed files with 2203 additions and 449 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
import { defineConfig } from "@playwright/test";
const databasePath = process.env.HY2_E2E_DATABASE ??= `/tmp/hy2-panel-ui-test-${Date.now()}.db`;
export default defineConfig({
testDir: "./tests",
testMatch: "**/*.spec.ts",
workers: 1,
timeout: 90000,
use: {
@@ -14,7 +17,7 @@ export default defineConfig({
url: "http://localhost:3106/login",
reuseExistingServer: false,
env: {
DATABASE_PATH: `/tmp/hy2-panel-ui-test-${Date.now()}.db`,
DATABASE_PATH: databasePath,
POLLER_ENABLED: "false",
ADMIN_USERNAME: "ui-review",
ADMIN_PASSWORD: "ui-review-local-2026",