test(acceptance): reuse fixed customers and align native fulfillment flows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user