优化
This commit is contained in:
@@ -108,6 +108,14 @@ describe('InboundTaskList measurement scope', () => {
|
||||
expect(source).not.toContain("name: 'inbound-order-detail', params: { inboundId: row.id }")
|
||||
})
|
||||
|
||||
it('keeps relationship data entry out of measurement and review task lists', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
expect(source).not.toContain('关联数据')
|
||||
expect(source).not.toContain('InboundCodeRelationshipDialog')
|
||||
expect(source).not.toContain('openRelationship')
|
||||
})
|
||||
|
||||
it('closes only after navigating an approved review to the measurement tab', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
const handler = source.slice(source.indexOf('async function handleTaskChanged'), source.indexOf('function handleReviewSelectionChange'))
|
||||
@@ -157,6 +165,14 @@ describe('InboundTaskList measurement scope', () => {
|
||||
expect(source).toContain("if (!value) return '—'")
|
||||
})
|
||||
|
||||
it('renders first-leg business types with the shared Chinese labels', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
expect(source).toContain("import { firstLegBusinessTypeLabel } from '@/shared/utils/firstLegBusinessLabels'")
|
||||
expect(source).toContain('firstLegBusinessTypeLabel((row as InboundOrderSummary).businessType)')
|
||||
expect(source).not.toContain('text((row as InboundOrderSummary).businessType)')
|
||||
})
|
||||
|
||||
it('refreshes cached task lists when users return from measurement work', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user