feat(shipping-notice): 收敛复核阶段同源投影与 OT 后履约推进
统一 Case/Progress 阶段 label_key、修复 Job 成功未推进 OT 的可重试失败投影与写路径,并落地 OT 后行级匹配/波次履约与版面诊断开关。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
74270adc22
commit
fd6a23f870
100 files changed
+12138
-1017
No files matched your search
+32
@@ -91,6 +91,38 @@ describe('ProcessGateRecoveryCard', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('hides the card for system worker / technical_auto_only waits', () => {
|
||||
const wrapper = mount(ProcessGateRecoveryCard, {
|
||||
props: {
|
||||
summary: baseSummary({
|
||||
technical_auto_only: true,
|
||||
owner_type: 'system',
|
||||
responsible_party: 'worker',
|
||||
next_action_code: 'retry_inventory_preparation',
|
||||
}),
|
||||
canHandle: false,
|
||||
},
|
||||
global: { plugins: [i18n] },
|
||||
});
|
||||
expect(wrapper.find('[data-testid="process-gate-recovery-card"]').exists()).toBe(false);
|
||||
expect(wrapper.text()).not.toContain('待处理事项');
|
||||
});
|
||||
|
||||
it('hides the card when responsible_party is worker without owner_type', () => {
|
||||
const wrapper = mount(ProcessGateRecoveryCard, {
|
||||
props: {
|
||||
summary: baseSummary({
|
||||
responsible_party: 'worker',
|
||||
owner_type: undefined,
|
||||
technical_auto_only: false,
|
||||
}),
|
||||
canHandle: false,
|
||||
},
|
||||
global: { plugins: [i18n] },
|
||||
});
|
||||
expect(wrapper.find('[data-testid="process-gate-recovery-card"]').exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('maps audit event codes to business labels and clears cache on execution change', async () => {
|
||||
const wrapper = mount(ProcessGateRecoveryCard, {
|
||||
props: { summary: baseSummary({ execution_no: 'EXEC-1' }), canHandle: true },
|
||||
|
||||
Reference in new issue
Block a user