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