This commit is contained in:
2026-08-14 12:50:42 +08:00
parent 87c6d2c4ca
commit 590a457dcd
36 changed files with 242 additions and 95 deletions
@@ -40,12 +40,21 @@ describe('FinanceCustomerAccountsView delivery', () => {
for (const forbidden of ['手动充值', '钱包', '外币', '发票', '利润']) expect(page).not.toContain(forbidden)
})
it('selects an active customer by name from master data', () => {
expect(page).toContain("key: 'customerId', type: 'select'")
expect(page).toContain("label: '客户名称'")
expect(page).toContain('item.tenantName')
expect(page).not.toContain('tenantCode')
expect(page).toContain('listPlatformTenants')
expect(page).not.toContain("key: 'keyword', type: 'input'")
})
it('supports a refreshable customer detail route without inventing an API parameter', () => {
expect(routes).toContain("path: 'finance/customer-accounts/:customerId'")
expect(page).toContain("name: 'finance-customer-account-detail'")
expect(page).toContain('restoreAccountDetail(customerId)')
expect(page).toContain("listFinanceAccounts({ page: currentPage, size: 200 })")
expect(page).not.toContain('listFinanceAccounts({ customerId')
expect(page).toContain('customerId: String(filters.value.customerId ||')
})
beforeEach(() => {