From 0708b4a2629725cae2d9abbb15f7b72f61aec308 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Wed, 2 Sep 2026 12:19:48 +0800 Subject: [PATCH] test(admin): align preload workflow contract --- .../workflows/components/SmartLoadingWorkbench.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.test.ts b/src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.test.ts index 0558a1d8..93e94fef 100644 --- a/src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.test.ts +++ b/src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.test.ts @@ -5,10 +5,12 @@ import { describe, expect, it } from 'vitest' const source = readFileSync(resolve(process.cwd(), 'src/modules/unified-orders/workflows/components/SmartLoadingWorkbench.vue'), 'utf8') describe('SmartLoadingWorkbench business actions', () => { - it('allows preload push before the real container number is available', () => { - expect(source).toContain(':disabled="!canPush || !editable || !plan.items.length || Boolean(action)"') + it('keeps the automatically-created preload plan editable without a legacy push action', () => { + expect(source).toContain("const editable = computed(() => plan.value?.status === 'EDITING')") + expect(source).toContain('自动预装计划缺失') + expect(source).not.toContain('canPush') + expect(source).not.toContain('推送预装') expect(source).not.toContain('!container?.containerNo') - expect(source).toContain('真实集装箱号可在订舱放舱后补录') }) it('uses semantic outlined buttons and keeps narrow action cells usable', () => {