Skip to content

修复 goal-weights 合并后的 e2e 失败 - #33

Merged
Yaphet2015 merged 1 commit into
mainfrom
fix-e2e-after-goal-weights
Nov 2, 2026
Merged

Yaphet2015 merged 1 commit into
mainfrom
fix-e2e-after-goal-weights

Conversation

@Yaphet2015

Copy link
Copy Markdown
Owner

PR #32(goal-weights)合并后 CI 的 e2e 有 17 条失败。原因和修改如下:

代码修复(1 处)

  • 手动画板上点「我能解释」后看不到印章(app.spec 的掌握度用例、「走一遍」用例)。goal-weights 让所有卡默认 weight: background,而 cardMastered 只认 core/hard,所以手动画板的掌握标记被吞掉了。现在只有带权重操作的 AI 卡按权重算掌握,手动画板继续用「讲清楚 = 盖章」。

测试跟上新行为

  • flow-p2 稍后:站号文字从「4」改成了「第 4 站」。
  • flow-p2 浅印复查:提示语去掉了「4 拍」,改成「这一站排在下一步之后…」。
  • transfer / electron-transfer:导入或恢复时 schema 会补上默认 weight: background,测试改为按这个预期比对。
  • sessions:在卡上提问会让卡升一级,卡面多出权重区,所以改成点卡片标题来重新打开对话。
  • goal-weights:截图原来写到 /workspace/...,CI 上没有这个目录。现在默认写到 test-results/goal-weights-shots,也可以用 GOAL_SHOTS 指定。

暂时 skip(spec-v2 已替代,需要确认)

  • flow-p2「摸底 v2」:新问题现在直接进入聊天式开场,不再进摸底。
  • flow-p2「答错两次卡住了」:第一次答错就会升级权重,旧的三个出口走不到了。

本地结果:两套 tsc 通过,vitest 469/469,build 通过,完整 e2e 127 通过、0 失败(56 条 skip,包括仅限 macOS 的用例)。

- Manual boards keep the 我能解释 seal (weight-aware mastery only for weighted AI cards)
- Update e2e tests to goal-weights behavior: 第 n 站 label, new recheck toast,
  default weight on import/restore, click title past weight footer
- Skip probe-entry and two-wrong 卡住了 tests superseded by spec-v2
- goal-weights screenshots default to test-results (CI has no /workspace)
@Yaphet2015
Yaphet2015 merged commit 7c63f14 into main Nov 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant