Files
chat-one-admin-web/e2e/README.md
alboped 77f718965d feat: 实现系统管理用户、角色与权限配置页面
补齐 RBAC 相关页面与 UI 设计图,并接入功能与视觉回归测试,便于后续持续验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-26 03:08:35 +08:00

25 lines
872 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/`;截图基线用于检测后续代码造成的
视觉变化,不替代设计稿还原度审查。