fad458b2a7
- UIUX 文档:填充 19 个缺口(多主体画像/健康度/AI+看板/增长域/洞察域/创始人端/OODA/助推/商密) - UIUX 文档:插入 6 个新章节(十四~十九),旧章节重编号为二十~三十一,更新目录和交叉引用 - 作业指导书 x5:导航改为 6 域分组,新增 Context Bar/工作模式/Insight Rail/决策线程/多工作区等 UI 概念 - 新建 docs/2-task-uiux.md:50 个代码落地开发任务,按 P0-P6 分优先级 + 8 Sprint 规划 - 后端/前端:大量新增模型、路由、组件(来自之前 Phase 开发)
41 lines
911 B
TypeScript
41 lines
911 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
/**
|
|
* Playwright E2E 测试配置。
|
|
*
|
|
* 前置条件:
|
|
* - 后端运行在 http://localhost:8000
|
|
* - 前端运行在 http://localhost:3000
|
|
*
|
|
* 启动方式:
|
|
* # 终端1:启动后端
|
|
* cd backend && python -m uvicorn app.main:app --reload --port 8000
|
|
* # 终端2:启动前端
|
|
* cd frontend && pnpm dev
|
|
* # 终端3:跑 E2E 测试
|
|
* cd frontend && npx playwright test
|
|
*/
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: "html",
|
|
timeout: 30_000,
|
|
expect: { timeout: 10_000 },
|
|
|
|
use: {
|
|
baseURL: "http://localhost:3000",
|
|
trace: "on-first-retry",
|
|
screenshot: "only-on-failure",
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] },
|
|
},
|
|
],
|
|
});
|