- 后端: coworker 智能体框架, WS API, 文件上传, 附件处理 - 前端: Open WebUI, 文件全量走 upload API (含 MD/TXT/JSON 等文本类) - 技能: md-to-office (pandoc + wkhtmltopdf) - 修复: 上传文件路径丢失, Agent 搜索浪费, 输出文件跑到 uploads/ - 打包: PyInstaller one-dir, 预打包 pandoc/wkhtmltopdf/chromium
27 lines
998 B
TypeScript
27 lines
998 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
// E2E harness for the GUI. Tests are hermetic: every /v1 request and the event WebSocket are mocked
|
|
// at the network layer (see e2e/fixtures.ts), so they run without the Python backend and never
|
|
// mutate real state — safe for CI and for asserting regressions in the interaction flows.
|
|
const PORT = 5199;
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 1 : 0,
|
|
reporter: process.env.CI ? "line" : [["list"]],
|
|
use: {
|
|
baseURL: `http://localhost:${PORT}`,
|
|
trace: "on-first-retry",
|
|
},
|
|
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
|
|
webServer: {
|
|
// Dev server on a dedicated port so it never collides with a running `npm run dev` (5173).
|
|
command: `npm run dev -- --port ${PORT} --strictPort`,
|
|
url: `http://localhost:${PORT}`,
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 120_000,
|
|
},
|
|
});
|