This commit is contained in:
2026-08-14 13:03:11 +08:00
parent f1721b2780
commit 724848feb6
7 changed files with 39 additions and 0 deletions
@@ -72,6 +72,14 @@ describe('OutboundDispatchesView', () => {
expect(wrapper.text()).not.toContain('READY_FOR_DISPATCH')
})
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).not.toContain('item.tenantCode')
})
it('does not issue a search when reset returns to the initial state', async () => {
const wrapper = mountPage()
await flushPromises()