mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-16 20:12:20 +01:00
test(mcp): use the card option ID in the demo approval fixture
The demo test submits the provider enum value as a card option ID. The typed question card uses choice_1, so the demo receives no decision and asks again. This fails the server CI shard after the master update. Submit the card option ID without changing approval behavior. The original fixture reproduces the CI failure locally. Verification covers the demo flow, atomic run events, and GitHub broker contracts. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
f0ad8a83a8
commit
4badaadbad
1 file changed
+1
-1
@@ -145,7 +145,7 @@ const support = await getEmbeddedPostgresTestSupport();
|
||||
const [card] = await db.select().from(issueThreadInteractions).where(and(eq(issueThreadInteractions.companyId, org.id), eq(issueThreadInteractions.issueId, issue.id)));
|
||||
expect(card).toMatchObject({ kind: "ask_user_questions", status: "pending" });
|
||||
await db.update(issueThreadInteractions).set({ status: "answered", result: { version: 1, answers: [
|
||||
{ questionId: "decision", optionIds: ["approve"] },
|
||||
{ questionId: "decision", optionIds: ["choice_1"] },
|
||||
{ questionId: "note", optionIds: [], otherText: "go ahead" },
|
||||
] } }).where(eq(issueThreadInteractions.id, card!.id));
|
||||
const pending = call("needs_approval", { action: "rotate the demo key" });
|
||||
|
||||
Reference in new issue
Block a user