feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-06 10:18:37 +08:00
1 parent 3a9fbac2fc
commit d2b3d74def
571 files changed
+78064 -24681

No files matched your search

@@ -251,4 +251,17 @@ describe('useChatShippingSendHandler', () => {
expect(attachments.value).toEqual([attachment]);
expect(ctx.msg.warning).toHaveBeenCalledWith('run create failed');
});
it('warns and consumes send when user tries batch task switching (co8 batch API retired)', async () => {
const ctx = createContext({
getActiveShippingBatchNo: () => 'SB-TEST',
});
const { tryHandleShippingSend } = createShippingSendHandlers(ctx);
const consumed = await tryHandleShippingSend(undefined, '下一票', '下一票');
expect(consumed).toBe(true);
expect(ctx.startChatTurn).not.toHaveBeenCalled();
expect(ctx.msg.warning).toHaveBeenCalledWith('chat.shippingNoticeUi.batchSwitchRemoved');
});
});