This commit is contained in:
2026-08-14 12:50:50 +08:00
parent 590a457dcd
commit f1721b2780
5 changed files with 33 additions and 1 deletions
@@ -38,4 +38,11 @@ describe('CustomsCasesView', () => {
expect(source).not.toContain("customs:view')\" link")
expect(source).toContain(':total="total" stripe row-key="id"')
})
it('uses an active name-only customer selector backed by customerId', () => {
expect(source).toContain("listPlatformTenants({ page: 1, size: 200, status: 'ACTIVE' })")
expect(source).toContain("customer.status === 'ACTIVE'")
expect(source).toContain("customer.legalName?.trim() || customer.tenantName")
expect(source).toContain("customerId: String(filters.value.customerId || '') || undefined")
expect(source).not.toContain('customer.tenantCode')
})
})