test(mobile-oa-h5): align payment Excel-column parity with periodBlocks

Assert installment amount labels on the list card and periodBlocks/footerFields in the presenter.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-14 15:03:29 +08:00
1 parent 321dd3ca43
commit 6eafec3fa9
1 file changed
+7 -2
@@ -439,11 +439,16 @@ test('payment detail presents every web field and nested transfer field with Chi
test('payment cards reproduce the Web Excel columns and operation labels', () => {
const presenter = source('./list-presenter.js')
const card = source('./components/MarketListCard.vue')
for (const label of [
'姓名', '手机号', '样本编码', '签署日期', '存储年限', '存储项目', '合同总额',
'缴费方式', '优惠金额', '应收总额', '应缴费金额(元)', '应缴费时间',
'已缴费金额', '已缴费时间', '欠缴费金额', '累计实缴', '待缴金额', '备注'
'缴费方式', '优惠金额', '应收总额', '应缴费时间',
'已缴费时间', '欠缴费金额', '累计实缴', '待缴金额', '备注'
]) assert.match(presenter, new RegExp(label))
assert.match(presenter, /periodBlocks:/)
assert.match(presenter, /footerFields:/)
assert.match(card, /应缴费金额/)
assert.match(card, /已缴费金额/)
assert.match(presenter, /'view-payment-detail': '缴费明细'/)
})