优化
This commit is contained in:
@@ -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')")
|
||||
|
||||
Reference in New Issue
Block a user