This commit is contained in:
2026-09-04 15:06:39 +08:00
parent 420f4a6c66
commit 0f47212477
2 changed files with 16 additions and 1 deletions
@@ -165,6 +165,15 @@ describe('InboundTaskList measurement scope', () => {
expect(source).toContain("if (!value) return '—'")
})
it('shows the expected arrival as a date in both measurement and review lists', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
expect(source).toContain("date.toLocaleDateString('zh-CN')")
expect(source).toContain('{{ formatDateOnly((row as InboundOrderSummary).expectedArrivalAt) }}')
expect(source).toContain('{{ formatDate((row as InboundOrderSummary).measureCompletedAt) }}')
expect(source).not.toContain('{{ formatDate((row as InboundOrderSummary).expectedArrivalAt) }}')
})
it('renders first-leg business types with the shared Chinese labels', () => {
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')