fix(acceptance): update declaration before fulfillment convergence

This commit is contained in:
2026-09-02 15:59:13 +08:00
parent 337033b350
commit cc04a5570c
2 changed files with 42 additions and 33 deletions
@@ -46,3 +46,10 @@ test('approval convergence is a hard WAIT_MEASURE prerequisite without coverage
assert.match(source, /throw new Error\('订单审核后的入库单与履约任务未在30秒内收敛/)
assert.doesNotMatch(source, /审核后入库单与履约任务异步收敛[\s\S]{0,300}addCoverageGap/)
})
test('post-approval declaration update precedes asynchronous fulfilment convergence', () => {
const approval = source.indexOf("Admin 审核通过本轮订单")
const declaration = source.indexOf("Admin 修改审核后客户申报资料")
const convergence = source.indexOf('const inboundResult = await waitForInbound')
assert.ok(approval >= 0 && declaration > approval && convergence > declaration)
})