feat: 支持自定义订阅节点并兼容现有数据库
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user