Files
quyun-v2/docs/plan.md
2026-02-02 23:51:34 +08:00

101 lines
2.9 KiB
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.
# Implementation Plan: UI Page Testing Checklist
**Branch**: `main` | **Date**: 2026-01-26 | **Spec**: N/A
**Input**: 制定页面级自动化测试清单,覆盖 portal/superadmin 核心业务流。
**Note**: 本计划遵循 `docs/templates/plan-template.md`
## Summary
梳理并落地一份可执行的 UI 页面测试清单,涵盖 Portal 与 Superadmin 的关键流(登录、订单、内容、财务、通知等),便于 AI/MCP 按步骤执行与验证。
## Technical Context
**Language/Version**: JS (Vue3 + Vite) + Chrome DevTools MCP
**Primary Dependencies**: Vite dev servers, seeded data
**Storage**: PostgreSQL (seed required)
**Testing**: 页面自动化MCP
**Target Platform**: local/staging
**Project Type**: Web application
**Performance Goals**: N/A
**Constraints**: 仅文档/指令,不改业务代码
**Scale/Scope**: Portal + Superadmin 核心页面
## Constitution Check
- 遵循 `backend/llm.txt`
- 不修改生成文件
## Project Structure
```text
docs/
├── plan.md
└── seed_verification.md
```
## Plan Phases
### Phase 1: 场景整理
- 列出 Portal/Superadmin 关键页面与断言点。
### Phase 2: 测试步骤编排
- 为每个场景编排 MCP 步骤(导航、表单、断言、错误检查)。
### Phase 3: 输出清单
- 将清单写入 `docs/seed_verification.md`
## Tasks
**Format**: `[ID] [P?] [Story] Description`
### Phase 1
- [x] T001 [US0] 梳理 Portal 核心页面与断言
- [x] T002 [US0] 梳理 Superadmin 核心页面与断言
### Phase 2
- [x] T010 [US1] 编排 MCP 步骤(导航/登录/断言/错误检查)
### Phase 3
- [x] T020 [US2] 输出并归档测试清单
## UI 测试执行清单(勾选即执行)
### Portal
- [x] 登录 `/auth/login`13800138000 / OTP 1234勾选条款
- [x] 首页 `/t/:tenantCode` 加载无报错
- [x] 内容详情 `/t/:tenantCode/contents/1`(正文/评论可见)
- [x] 订单 `/t/:tenantCode/me/orders` 列表有数据
- [x] 已购 `/t/:tenantCode/me/library` 列表有数据
- [x] 收藏 `/t/:tenantCode/me/favorites` 有数据
- [x] 点赞 `/t/:tenantCode/me/likes` 有数据
- [x] 消息中心 `/t/:tenantCode/me/notifications` 无报错
- [x] 创作者中心 `/t/:tenantCode/creator` 可访问
### Superadmin
- [x] 登录 `/super/auth/login`superadmin/superadmin123
- [x] Dashboard 载入
- [x] Orders 列表有数据
- [x] Finance提现/流水/异常)有数据
- [x] Notifications → 模板管理编辑并保存
- [x] System Configs 展示 `site_name/support_email`
- [x] Audit Logs 有最新操作
- [ ] Notifications 群发后在 Portal 消息中心出现新记录(需人工确认)
## Dependencies
- Phase 1 → Phase 2 → Phase 3
## Acceptance Criteria
- 文档包含 Portal/Superadmin 主要页面与清晰断言点。
- 每个场景有 MCP 执行步骤含登录、导航、断言、console error 检查)。
## Risks
- 环境/端口变更导致脚本需调整。
## Complexity Tracking
无。