This commit is contained in:
2026-08-19 09:42:07 +08:00
parent ff1d330c2d
commit b5864bfcda
56 changed files with 497 additions and 306 deletions
@@ -22,7 +22,7 @@ test('覆盖费用、对账单、AR 和 AP 页面分层状态', () => {
for (const status of ['DRAFT', 'PENDING_REVIEW', 'ISSUED']) assert.match(source, new RegExp(`'${status}'`))
assert.match(source, /reviewStatus === 'PENDING'/)
assert.match(source, /reviewStatus === 'APPROVED'/)
assert.match(source, /settlementIncluded === true/)
assert.doesNotMatch(source, /settlementIncluded|settlement-inclusion/)
})
test('平台列表默认全量查询不带 customerId,未部署时登记 blocker', () => {
@@ -36,7 +36,7 @@ test('所有财务写操作使用 marker 幂等键并上传真实凭证', () =>
assert.match(source, /fixture\.voucherFileId/)
assert.match(source, /finance-full-fixtures\.mjs/)
assert.match(source, /context\.createdResources\.financeDemo = matrix/)
assert.match(source, /`source-\$\{role\}-\$\{source\.feeSourceId\}-include`/)
assert.match(source, /`source-\$\{role\}-\$\{source\.feeSourceId\}-submit`/)
assert.match(source, /`ap-\$\{role\}-\$\{source\.feeSourceId\}-\$\{source\.supplierId\}-create`/)
})
@@ -49,8 +49,8 @@ test('费用来源使用 operationVersion,应付供应商长整型保持字符
assert.match(source, /expectedVersion: operationVersion\(current\.value\)/)
assert.match(source, /supplierId: id\(source\.supplierId\)/)
assert.doesNotMatch(source, /supplierId: Number\(source\.supplierId\)/)
assert.match(source, /partnerId, partnerName:/)
assert.doesNotMatch(source, /partnerId: Number\(partnerId\)/)
assert.match(source, /supplierId, remark:/)
assert.doesNotMatch(source, /partnerId|partnerName/)
})
test('恢复模式只续补固定报告来源并校验 AR AP 金额状态', () => {