test: 补独立 Attempt 过渡逻辑与页面链路 E2E - #197
Merged
Merged
Conversation
服务端:storage_paths 字符串月份/拒绝分支、TTS 404/409 与嵌入回退、 录音二次上传删旧对象、双读按 round 合并(独立优先)、并发 reserve round 唯一性(生产验收固化)。 E2E:journey.spec 覆盖登录→派题、结果页 ?attempt= 还原、历史→详情 tab 切换、分享页精确轮次(mock API,五引擎/移动视口跑)。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
评审结论
现有体系底子扎实:服务端 331 测试/87.4% 覆盖(cost-guard 禁真 AI/OSS 出口)、集成测试覆盖全部路由、前端组件单测齐全。缺口集中在迁移过渡期逻辑分支和页面级链路回归。
服务端新增(+17 测试,覆盖 87.4%→88.1%)
storage_paths:字符串 createdAt 的月份解析分支 + purpose/variant/extension 拒绝分支tts:practice 不存在 404、无可归档轮次 409、独立 Attempt 缺失时 speechAssets 回退嵌入数组practice_sessions:同 attempt 二次上传录音删除旧 OSS 对象practice_attempts(新文件):双读按 round 合并且独立优先;并发/api/correct的 round 唯一性(把生产验收固化成回归)E2E 新增 journey.spec.js(4 用例 × 5 引擎/视口)
现状 E2E 只有无后端兼容冒烟,页面链路(?attempt= 还原等)此前无自动化兜底。新增 mock API 风格(与 result-layout 一致,不引真后端):
?attempt=精确还原两轮验收