fix(acceptance): align latest overseas contracts

This commit is contained in:
2026-09-09 00:53:40 +08:00
parent 5da3417429
commit 0d73e185c0
7 changed files with 76 additions and 11 deletions
@@ -15,11 +15,12 @@ test('admin full acceptance registers inbound fee lifecycle after measurement',
test('inbound fee lifecycle covers frozen source, version, publication and WAIT_SPLIT contracts', async () => {
const source = await readFile(moduleFile, 'utf8')
for (const token of [
'/fees/latest', '/fees/published', '/fees/confirm', '/fees/send', '/fee-details',
'/fees/latest', '/fees/calculate', '/fees/published', '/fees/confirm', '/fees/send', '/fee-details',
'FBA_PRICING', 'MANUAL', 'CALCULATED', 'CONFIRMED', 'SENT', 'PUBLISHED',
'sourceFeeVersion', 'reviewStatus', 'publicationStatus', 'WAIT_SPLIT', 'toleranceConfirmed: true',
]) assert.match(source, new RegExp(token.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')))
assert.match(source, /人工发布头程费用并触发 Finance Outbox/)
assert.match(source, /String\(initialResponse\?\.body\?\.code\) === 'A0404'/)
assert.match(source, /对客合计仅含已发布头程与已审核其他应收且其他应付单列/)
assert.doesNotMatch(source, /settlementIncluded|是否结算|参与结算/)
})