Files
chat-one-admin-web/e2e/README.md
alboped c4872891f8 feat: 实现大模型模型列表与供应商管理,并接入 Playwright 测试
补齐 LLM 子菜单路由,落地模型列表与供应商管理页面交互,同时引入功能与视觉回归用例以便后续页面持续验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 02:01:40 +08:00

25 lines
836 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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/`;截图基线用于检测后续代码造成的
视觉变化,不替代设计稿还原度审查。