优化
This commit is contained in:
@@ -57,6 +57,25 @@ describe('finance five-page delivery contract', () => {
|
||||
expect(page.indexOf("key: 'actions'")).toBeLessThan(page.indexOf("key: 'customerName'"))
|
||||
for (const state of ['客户账户加载失败', '暂无客户账户', '无权访问客户账户', '账户流水加载失败']) expect(page).toContain(state)
|
||||
})
|
||||
|
||||
it('connects G2 fee sources to real detail, review and settlement operations', () => {
|
||||
const page = source('src/modules/finance/pages/FinanceCustomerArapView.vue')
|
||||
for (const marker of [
|
||||
'`${basePath}/fee-sources/${feeSourceId}`',
|
||||
'`${basePath}/fee-sources/${feeSourceId}/review`',
|
||||
'`${basePath}/fee-sources/${feeSourceId}/settlement-inclusion`',
|
||||
]) expect(api).toContain(marker)
|
||||
for (const operation of ['getFinanceFeeSource', 'reviewFinanceFeeSource', 'updateFinanceFeeSourceSettlementInclusion']) expect(page).toContain(operation)
|
||||
for (const permission of ['platform:finance:fee-source:view', 'platform:finance:fee-source:review', 'platform:finance:fee-source:settlement']) expect(page).toContain(permission)
|
||||
expect(page).toContain('expectedVersion: detail.value.operationVersion')
|
||||
const columns = page.slice(page.indexOf('const columns:'))
|
||||
expect(columns.indexOf("key: 'actions'")).toBeLessThan(columns.indexOf("key: 'direction'"))
|
||||
expect(page).toContain('<ApiErrorMeta :details="detailError"')
|
||||
expect(page).toContain('<ApiErrorMeta :details="reviewError"')
|
||||
expect(page).toContain('<ApiErrorMeta :details="inclusionError"')
|
||||
expect(page).not.toContain('接口尚未提供')
|
||||
expect(page).not.toContain('disabled title=')
|
||||
})
|
||||
})
|
||||
|
||||
function basePathMarker(endpoint: string) {
|
||||
|
||||
Reference in New Issue
Block a user