fix(ci): stabilize zero-delay retry and slack interaction tests

This commit is contained in:
Vincent Koc
2026-04-04 03:51:59 +09:00
parent 1420b3bad7
commit eecb36eff4
4 changed files with 24 additions and 18 deletions

View File

@@ -358,17 +358,8 @@ describe("registerSlackInteractionEvents", () => {
expect.objectContaining({
channel: "slack",
data: "codex:approve:thread-1",
interactionId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
ctx: expect.objectContaining({
accountId: ctx.accountId,
conversationId: "C1",
interactionId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
threadId: "100.100",
interaction: expect.objectContaining({
actionId: "codex",
value: "approve:thread-1",
}),
}),
dedupeId: "U123:C1:100.200:123.trigger:codex:approve:thread-1",
invoke: expect.any(Function),
}),
);
expect(enqueueSystemEventMock).not.toHaveBeenCalled();
@@ -491,17 +482,17 @@ describe("registerSlackInteractionEvents", () => {
const calls = dispatchPluginInteractiveHandlerMock.mock.calls as unknown[][];
const firstCall = calls[0]?.[0] as
| {
interactionId?: string;
dedupeId?: string;
}
| undefined;
const secondCall = calls[1]?.[0] as
| {
interactionId?: string;
dedupeId?: string;
}
| undefined;
expect(firstCall?.interactionId).toContain(":trigger-1:");
expect(secondCall?.interactionId).toContain(":trigger-2:");
expect(firstCall?.interactionId).not.toBe(secondCall?.interactionId);
expect(firstCall?.dedupeId).toContain(":trigger-1:");
expect(secondCall?.dedupeId).toContain(":trigger-2:");
expect(firstCall?.dedupeId).not.toBe(secondCall?.dedupeId);
});
it("resolves plugin binding approvals from shared interactive Slack actions", async () => {