test: keep overseas acceptance fixtures independent

This commit is contained in:
2026-09-09 19:16:18 +08:00
parent 30b9db9628
commit 90a0b009da
4 changed files with 29 additions and 7 deletions
@@ -8,8 +8,12 @@ const here = path.dirname(fileURLToPath(import.meta.url))
const source = fs.readFileSync(path.join(here, 'phase4-overseas-inbound-operations.mjs'), 'utf8')
test('module covers the frozen Admin inbound-plan write surface', () => {
for (const value of ['/convert', '/pallets/supplement', '/fba-appointments/batch',
for (const value of ['/container-preview', '/convert-container', '/pallets/supplement', '/fba-appointments/batch',
'/fba-appointments/${encodeURIComponent(appointmentNo)}']) assert.ok(source.includes(value), value)
assert.equal(source.includes("`${PLAN_BASE}/convert`"), false)
assert.match(source, /snapshotVersion/)
assert.match(source, /snapshotHash/)
assert.match(source, /'Idempotency-Key'/)
assert.match(source, /重复转换返回同一入仓计划/)
assert.match(source, /FBA预约同单号异载荷返回A0409/)
assert.match(source, /appointmentStatus: 'CANCELLED'/)