feat: align frontend runtime and Edge TTS

This commit is contained in:
2026-07-22 15:01:25 +08:00
parent d2c278f0ea
commit 699a0bced4
43 changed files with 2000 additions and 73 deletions
+13 -7
View File
@@ -1,23 +1,29 @@
import { defineConfig, devices } from "@playwright/test";
const testPort = process.env.PLAYWRIGHT_PORT || "5191";
const baseURL = process.env.PLAYWRIGHT_BASE_URL || `http://127.0.0.1:${testPort}`;
export default defineConfig({
testDir: "./src",
testMatch: ["**/*.e2e.ts"],
testDir: ".",
testMatch: ["src/**/*.e2e.ts", "tests/browser/**/*.e2e.ts"],
fullyParallel: true,
reporter: "html",
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL || "http://127.0.0.1:5173",
baseURL,
trace: "on-first-retry"
},
webServer: {
command: "pnpm dev",
url: "http://127.0.0.1:5173",
reuseExistingServer: true
command: `TJWATER_AGENT_API_BASE_URL=http://127.0.0.1:8787 pnpm dev --port ${testPort} --strictPort`,
url: baseURL,
reuseExistingServer: false
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] }
use: {
...devices["Desktop Chrome"],
viewport: { width: 1440, height: 900 }
}
}
]
});