Skip to content

test(board): 会议监听群、issue 领取群补单人群不带管家的用例 - #2304

Merged
deepcoldy merged 1 commit into
masterfrom
test/steward-solo-shape-cases
Oct 25, 2026
Merged

deepcoldy merged 1 commit into
masterfrom
test/steward-solo-shape-cases

Conversation

@deepcoldy

Copy link
Copy Markdown
Owner

改了什么

#2291 的 follow-up,关闭 #2303:只补测试,不改代码。

#2291 把「单人群不带管家」改成由 createGroupWithBots 按实际进群的 bot 数和人数判定后,会议监听群(daemon.ts:larkAppIds: [] + 1 个目标用户)和 issue 领取群(issue-claim-flow + issue-command-deps:creator + 认领 bot(+ 同伴 bot)、领取人、owner union_id)的结果随之变化,但这两种入口形状没有用例钉住。本 PR 在 test/group-creator.test.ts 的管家用例里补一条,按两处入口的真实调用形状断言:

  • 会议监听群:按单人群,不带管家;
  • issue 领取群单 bot:按单人群,不带管家,也不调加群接口;
  • issue 领取群多 bot:不是单人群,照带管家。

影响面

仅测试文件,无运行时改动。

验证

  • npx vitest run test/group-creator.test.ts:51 例全过;bun test test/group-creator.test.ts:51 例全过(该文件在 bun 腿里)。
  • 变异:把单人群判定改成恒为否(soloGroup = false)→ 新用例红;去掉 bot 数条件(只看人数)→ 新用例红(多 bot 领取群被误当单人群)。两处都已还原。

🤖 Generated with Claude Code

#2291 改成按实际进群的 bot 数和人数判定单人群后,会议监听群(larkAppIds 为空 + 1 个目标用户)
与 issue 领取群(单 bot / 多 bot)被纳入或排除,但这两种入口形状没有用例钉住。补在
group-creator 的管家用例里:会议监听群、单 bot 领取群不带管家,多 bot 领取群照带。

Closes #2303

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

🚀 Released in v3.51.0

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