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