优化
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user