=test_update_homework_tests_and_work_log
Some checks failed
CI / build-deploy (push) Has been cancelled
Some checks failed
CI / build-deploy (push) Has been cancelled
This commit is contained in:
@@ -1,5 +1,59 @@
|
||||
# Work Log
|
||||
|
||||
## 2026-03-19
|
||||
|
||||
### 1. 作业与权限测试覆盖补齐(第二阶段)
|
||||
- 新增角色路由与代理守卫集成测试:
|
||||
- `tests/integration/dashboard-routing.test.ts`
|
||||
- `tests/integration/proxy-guard.test.ts`
|
||||
- 扩展 onboarding 完成接口集成测试,覆盖班级-学科映射与教师分配逻辑:
|
||||
- `tests/integration/api-onboarding-complete.route.test.ts`
|
||||
- 新增认证业务流 E2E(注册 -> 登录 -> 受保护区域):
|
||||
- `tests/e2e/auth-business-flow.spec.ts`
|
||||
- 新增并补齐作业流程集成测试,覆盖创建、开始作答、提交、批改、保存答案:
|
||||
- `tests/integration/homework-create-assignment.test.ts`
|
||||
- `tests/integration/homework-actions.test.ts`
|
||||
- `saveHomeworkAnswerAction` 增加关键分支用例:
|
||||
- started 状态首次保存答案(insert)
|
||||
- started 状态更新已有答案(update)
|
||||
|
||||
### 2. 验证
|
||||
- `npm run test:integration`:通过(7 文件,38 用例)
|
||||
- `npm run lint`:通过
|
||||
- `npm run typecheck`:通过
|
||||
- `npm run test:e2e`:通过(40 通过,1 跳过)
|
||||
- 语言诊断:无错误
|
||||
|
||||
## 2026-03-18
|
||||
|
||||
### 1. 企业级测试体系落地(第一阶段)
|
||||
- 新增集成测试与 E2E 基础设施:
|
||||
- `vitest.config.ts`
|
||||
- `playwright.config.ts`
|
||||
- `tests/setup/integration.setup.ts`
|
||||
- 新增接口集成测试:
|
||||
- `tests/integration/api-ai-chat.route.test.ts`
|
||||
- `tests/integration/api-onboarding-status.route.test.ts`
|
||||
- `tests/integration/api-onboarding-complete.route.test.ts`
|
||||
- 新增认证冒烟 E2E:
|
||||
- `tests/e2e/smoke-auth.spec.ts`
|
||||
- 新增全路由回归 E2E:
|
||||
- `tests/e2e/full-route-regression.spec.ts`
|
||||
- 新增工程脚本:
|
||||
- `test`、`test:ci`、`test:integration`、`test:e2e`、`test:e2e:smoke`、`test:e2e:full-routes`
|
||||
- 更新 CI 质量门禁:
|
||||
- 增加 Playwright Chromium 安装
|
||||
- 增加集成测试执行
|
||||
- 增加 E2E 全量回归测试执行
|
||||
|
||||
### 2. 验证
|
||||
- `npm run lint`:通过
|
||||
- `npm run typecheck`:通过
|
||||
- `npm run test:integration`:通过(3 文件,10 用例)
|
||||
- `npm run build`:通过
|
||||
- `npm run test:e2e:smoke`:通过(本地使用系统 Chrome 通道,2 用例通过)
|
||||
- `npm run test:e2e:full-routes`:通过(38 用例通过)
|
||||
|
||||
## 2026-03-03
|
||||
|
||||
### 1. 教师加入班级学科分配逻辑修复
|
||||
|
||||
Reference in New Issue
Block a user