优化
This commit is contained in:
@@ -314,6 +314,14 @@ describe('UnifiedOrdersView contract', () => {
|
||||
expect(source).toContain('firstLegDestinationTypeLabel(detail.order.order?.destinationType)')
|
||||
})
|
||||
|
||||
it('does not mount fee consumers until a real inboundId exists', () => {
|
||||
const feeSection = source.slice(source.indexOf("activeDetailTab === 'fees'"), source.indexOf("activeDetailTab === 'history'"))
|
||||
expect(source).toContain('const normalizedInboundId = computed(() => normalizedIdentifier(detail.value?.summary.inboundId))')
|
||||
expect(feeSection).toContain('v-if="!normalizedInboundId" description="订单尚未生成入库单,暂无入仓费用"')
|
||||
expect(feeSection.match(/:inbound-id="normalizedInboundId"/g)).toHaveLength(2)
|
||||
expect(feeSection).not.toContain('String(detail.summary.inboundId)')
|
||||
})
|
||||
|
||||
it('mounts downstream progress inside the existing order detail without opening unsafe writes', () => {
|
||||
expect(source).toContain('UnifiedOrderWorkflowPanel')
|
||||
expect(source).toContain("{ key: 'workflow', label: '后半程作业', icon: OrderFulfillmentIcon }")
|
||||
|
||||
Reference in New Issue
Block a user