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
@@ -23,6 +23,18 @@ test('fixed partner warehouse is reused and never retired', async () => {
const here = path.dirname(fileURLToPath(import.meta.url))
const source = fs.readFileSync(path.join(here, 'phase4-overseas-business.mjs'), 'utf8')
test('卡车履约接受正式Long字符串版本并保持原单重放一致', async () => {
const context = fixture(), request = context.request.bind(context)
context.request = async (...args) => {
const response = structuredClone(await request(...args))
if (args[1].includes('/us-truck-orders/') && response.body?.data?.summary)
response.body.data.summary.version = String(response.body.data.summary.version)
return response
}
await run(context)
assert.equal(context.createdResources.phase4OverseasBusiness.truck.fulfillment.status, 'HTTP_VERIFIED')
})
test('卡车请求先持久化,正常与失败响应均留有证据', async () => {
const context = fixture(), original = context.request.bind(context)
context.request = async (method, path, ...args) => {