test(acceptance): reuse fixed customers and align native fulfillment flows

This commit is contained in:
2026-10-23 04:48:02 +08:00
parent b92f7fe991
commit 139f6b1932
51 changed files with 1076 additions and 228 deletions
@@ -131,6 +131,17 @@ test('sample procurement traverses receipt, packing, both shipments and exact wa
assert.ok(proof.checks.every(check => check.passed))
})
test('正式Long字符串版本贯穿采购正常履约', async () => {
const h = completeFixture(), request = h.context.request.bind(h.context)
h.context.request = async (...args) => {
const response = await request(...args)
const order = response.body?.data?.customerView?.order || response.body?.data?.order
if (order) order.version = String(order.version)
return response
}
assert.equal((await verifyProcurementSample(h.context, h.inputs)).status, 'PASSED')
})
for (const fault of ['aggregate customer', 'aggregate order', 'aggregate version', 'create replay customer', 'customer final order', 'replay deducts']) {
test(`procurement stops rather than passing ${fault}`, async () => {
const h = completeFixture(fault)