feat: let Feishu onboarding create projects in folders

This commit is contained in:
2026-07-10 00:35:18 +08:00
parent 519ea8144f
commit 87e3d3f990
3 changed files with 53 additions and 16 deletions
+7 -4
View File
@@ -168,12 +168,15 @@ describe("trigger full lifecycle (integration)", () => {
expect(rt.sentCards).toHaveLength(1);
expect(rt.sentTexts.at(-1)).toContain("这个飞书群还没有绑定项目");
const values = cardActionValues(rt.sentCards[0]);
expect(values).toContainEqual({
project_onboarding: {
expect(values).toEqual(expect.arrayContaining([
expect.objectContaining({
project_onboarding: expect.objectContaining({
action: "create_project_from_chat",
organization_id: DEFAULT_ORG_ID,
},
});
folder_id: expect.any(String),
}),
}),
]));
expect(runAgentCalls).toHaveLength(0);
});