This commit is contained in:
2026-08-12 14:08:33 +08:00
parent 4fb8b85c13
commit 975e0057e3
20 changed files with 378 additions and 29 deletions
@@ -153,6 +153,15 @@ describe('UnifiedOrdersView contract', () => {
expect(source).not.toContain('/actions/')
})
it('treats WAIT_SPLIT as a display/filter state without inventing a split action', () => {
expect(source).toContain('...unifiedOrderStatusOptions')
expect(source).toContain('function nextActionBoundary(row: UnifiedOrderResource)')
expect(source).toContain("return row.nextAction === 'CONFIRM_MEASUREMENT' ? '待完成测量' : ''")
expect(source).not.toContain('人工进入分柜')
expect(source).not.toContain("action === 'split'")
expect(source).not.toContain("nextAction === 'SMART_SPLIT'")
})
it('approves pending review orders without exposing an order carrier assignment', () => {
expect(source).toContain("row.nextAction === 'APPROVE_ORDER'")
expect(source).toContain("can('platform:order:approve')")