优化
This commit is contained in:
@@ -7,6 +7,12 @@ const detailSource = readFileSync(resolve(process.cwd(), 'src/modules/loading-li
|
||||
const preloadDetailSource = readFileSync(resolve(process.cwd(), 'src/modules/loading-lists/pages/PreloadPlanDetailView.vue'), 'utf8')
|
||||
|
||||
describe('LoadingListsView', () => {
|
||||
it('filters both list modes by an active name-only customer selector', () => {
|
||||
expect(source).toContain("listPlatformTenants({ page: 1, size: 200, status: 'ACTIVE' })")
|
||||
expect(source).toContain("customer.legalName?.trim() || customer.tenantName")
|
||||
expect(source).toContain("customerId: String(query.customerId || '').trim() || undefined")
|
||||
expect(source).not.toContain('customer.tenantCode')
|
||||
})
|
||||
it('keeps the operation column first and fixed left in both lists', () => {
|
||||
const actionColumns = [...source.matchAll(/key: 'actions', label: '操作', fixed: 'left'/g)]
|
||||
expect(actionColumns).toHaveLength(2)
|
||||
|
||||
Reference in New Issue
Block a user