This commit is contained in:
wujinliang
2026-08-25 22:08:59 +08:00
parent f702d1b988
commit 57de615717
13 changed files with 199 additions and 15 deletions
@@ -67,11 +67,13 @@ describe('finance presentation governance', () => {
})
it('uses optional all-customer filters without a customer-selection blocker', () => {
for (const source of [settlement, statements, arap]) {
for (const source of [settlement, statements]) {
expect(source).toContain("placeholder: '全部客户'")
expect(source).not.toContain('全客户查询暂不可用')
expect(source).not.toContain('empty-text="请选择客户查询')
}
expect(arap).toContain("placeholder: '请选择客户'")
expect(arap).not.toContain("placeholder: '全部客户'")
})
it('uses active-customer name selectors across all formal finance pages', () => {
@@ -84,6 +86,20 @@ describe('finance presentation governance', () => {
expect(accounts).not.toContain("key: 'keyword', type: 'input'")
})
it('keeps customer arap selector text within a stable dropdown layout', () => {
expect(arap).toContain("class: 'finance-customer-select'")
expect(arap).toContain("popperClass: 'finance-customer-arap-popper'")
expect(arap).toContain('teleported: false')
expect(arap).toContain('onVisibleChange: onCustomerSelectVisible')
expect(arap).toContain("document.addEventListener('scroll', closeCustomerSelectOnScroll, true)")
expect(arap).toContain('.finance-customer-arap-popper .el-select-dropdown__item')
expect(arap).toContain('text-overflow: ellipsis;')
})
it('keeps the customer arap table body independently scrollable', () => {
expect(arap).toContain('max-height="calc(100vh - 300px)"')
})
it('translates source codes and provides reason placeholders', () => {
expect(arap).toContain('sourceTypeDisplay(detail.sourceType)')
expect(arap).toContain('financeOperationActionLabel(log.action)')