Browse Source

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>
zlwu 4 weeks ago
parent
commit
6eafec3fa9
1 changed files with 7 additions and 2 deletions
  1. 7 2
      mobile-oa-h5/src/market/mobile-parity-ui.test.js

+ 7 - 2
mobile-oa-h5/src/market/mobile-parity-ui.test.js

@@ -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': '缴费明细'/)
 })