This commit is contained in:
2026-08-14 14:27:03 +08:00
parent 724848feb6
commit a81af4a664
64 changed files with 961 additions and 176 deletions
@@ -74,9 +74,10 @@ describe('OutboundDispatchesView', () => {
it('loads only active customer names for the filter', () => {
const source = readFileSync(resolve(process.cwd(), 'src/modules/outbound-dispatch/pages/OutboundDispatchesView.vue'), 'utf8')
expect(source).toContain("listPlatformTenants({ page: 1, size: 200, status: 'ACTIVE' })")
expect(source).toContain("records.filter((customer) => customer.status === 'ACTIVE')")
expect(source).toContain("item.legalName?.trim() || item.tenantName")
expect(source).toContain("listPlatformTenants({ page: currentPage, size: 200, status: 'ACTIVE' })")
expect(source).toContain("result.records.filter((customer) => customer.status === 'ACTIVE')")
expect(source).toContain('while (currentPage <= pages)')
expect(source).toContain("item.tenantName")
expect(source).not.toContain('item.tenantCode')
})