feat: 实现大模型模型列表与供应商管理,并接入 Playwright 测试

补齐 LLM 子菜单路由,落地模型列表与供应商管理页面交互,同时引入功能与视觉回归用例以便后续页面持续验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 02:01:40 +08:00
parent a09dcef3f1
commit c4872891f8
23 changed files with 1117 additions and 7 deletions

24
e2e/README.md Normal file
View File

@@ -0,0 +1,24 @@
# E2E 与视觉回归
## 命令
```bash
pnpm test:e2e # 功能测试 + 视觉回归
pnpm test:e2e:ui # Playwright UI 模式
pnpm test:e2e:update # 确认 UI 改动后更新截图基线
```
测试默认复用本机 Google Chrome并由 Playwright 自动启动 Vite。
## 目录
- `fixtures/auth.ts`:注入测试登录态,避免每条业务用例重复登录。
- `pages/`:登录、页面功能和交互测试。
- `visual/`:页面截图回归。
- `snapshots/`:由 `test:e2e:update` 生成的基线图。
模型列表、供应商管理的功能和视觉用例已启用。确认页面视觉改动符合预期后,执行
`pnpm test:e2e:update` 更新基线。
设计目标图位于 `docs/ui/llm/list/`;截图基线用于检测后续代码造成的
视觉变化,不替代设计稿还原度审查。