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
+6 -1
View File
@@ -57,7 +57,12 @@ describe('finance five-page delivery contract', () => {
expect(page).toContain('listFinanceAccountLedger')
expect(page).not.toContain('getFinanceCustomerAccount')
expect(page).not.toContain('接口尚未提供')
expect(page.indexOf("key: 'actions'")).toBeLessThan(page.indexOf("key: 'customerName'"))
expect(page).toContain("key: 'customerId', type: 'select', label: '客户名称'")
expect(page).toContain('options: customers.value.filter')
expect(page).toContain('label: item.tenantName')
expect(page).not.toContain('tenantCode')
const columns = page.slice(page.indexOf('const columns: DataTableColumn[]'))
expect(columns.indexOf("key: 'actions'")).toBeLessThan(columns.indexOf("key: 'customerName'"))
for (const state of ['客户账户加载失败', '暂无客户账户', '无权访问客户账户', '账户流水加载失败']) expect(page).toContain(state)
})