Files
OpenMesh/surfaces/gui/playwright.live.config.ts
zhaolei 6f402ffcee
Some checks failed
CI / pytest (push) Has been cancelled
CI / gui-unit (push) Has been cancelled
CI / gui-e2e (push) Has been cancelled
feat: OpenMesh 基础平台与 MD/PDF 转换技能
- 后端: coworker 智能体框架, WS API, 文件上传, 附件处理
- 前端: Open WebUI, 文件全量走 upload API (含 MD/TXT/JSON 等文本类)
- 技能: md-to-office (pandoc + wkhtmltopdf)
- 修复: 上传文件路径丢失, Agent 搜索浪费, 输出文件跑到 uploads/
- 打包: PyInstaller one-dir, 预打包 pandoc/wkhtmltopdf/chromium
2026-09-13 23:41:04 +08:00

30 lines
1.1 KiB
TypeScript

import { defineConfig, devices } from "@playwright/test";
// LIVE smoke config — runs against the REAL backend (openworker-server on :8765) and a REAL model.
// Deliberately separate from playwright.config.ts (testDir ./e2e), so `npm run e2e` and CI never
// pick these up. Run manually with `npm run e2e:live` when the backend is up and a model is set.
// Nondeterministic and costs a few model tokens per run — a confidence smoke, not an assertion gate.
const PORT = 5199;
export default defineConfig({
testDir: "./e2e-live",
fullyParallel: false,
workers: 1,
retries: 0,
reporter: [["list"]],
// Model + tool execution take real time.
timeout: 180_000,
use: {
baseURL: `http://localhost:${PORT}`,
trace: "on-first-retry",
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
webServer: {
// The dev server's default API base is 127.0.0.1:8765 — i.e. the real backend (no mocks here).
command: `npm run dev -- --port ${PORT} --strictPort`,
url: `http://localhost:${PORT}`,
reuseExistingServer: true,
timeout: 120_000,
},
});