import { readFileSync } from 'node:fs' import { resolve } from 'node:path' import { describe, expect, it } from 'vitest' import type { PlatformTenantResource } from '@/modules/iam' import { loadAllActiveCustomers } from '../task-list' function activeCustomer(id: string, tenantName: string, legalName: string | null, tenantCode: string): PlatformTenantResource { return { id, tenantName, legalName, tenantCode, status: 'ACTIVE', legalRepresentative: null, unifiedSocialCreditCode: null, contactName: null, contactPhone: null, contactEmail: null, servicePackage: null, contactWechat: null, salesOwnerName: null, paymentTermDays: null, enterpriseType: null, establishedDate: null, registeredCapital: null, registeredCapitalCurrency: null, registeredAddress: null, internalRemark: null, createdAt: null, approvedAt: null, } } describe('InboundTaskList measurement scope', () => { it('uses supplied order status tabs in the toolbar and keeps standalone mode titles as fallback', () => { const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8') const toolbar = source.match(/