优化
This commit is contained in:
@@ -48,6 +48,17 @@ describe('CarrierRatesView price-book source contract', () => {
|
||||
expect(source).not.toContain('草稿')
|
||||
})
|
||||
|
||||
it('shows all source-backed prototype price metadata without inventing cost breakdowns', () => {
|
||||
for (const label of ['渠道', '参考时效', '最晚进仓时间', '船期', '附加费', '备注', '生效状态']) {
|
||||
expect(source).toContain(`label="${label}"`)
|
||||
}
|
||||
for (const field of ['referenceTransit', 'latestWarehouseEntry', 'estimatedDepartureText', 'surchargeDescription', 'remark']) {
|
||||
expect(source).toContain(`selectedChannel?.${field}`)
|
||||
}
|
||||
expect(source).not.toContain('AMS+换单费')
|
||||
expect(source).not.toContain('建议报价')
|
||||
})
|
||||
|
||||
it('maps only active platform public domestic and overseas warehouses before confirmation', () => {
|
||||
expect(source).toContain('listAllPlatformWarehouses()')
|
||||
expect(source).toContain("warehouse.warehouseType === 'DOMESTIC'")
|
||||
|
||||
Reference in New Issue
Block a user