test: stabilize full development acceptance

This commit is contained in:
2026-09-04 17:17:08 +08:00
parent 61b7b3fb02
commit 991bab9cb1
20 changed files with 155 additions and 87 deletions
@@ -28,13 +28,14 @@ test('随机线路只固定义乌仓并从客户真实可计价候选选择', ()
assert.doesNotMatch(runner, /channel-name|channel-code/)
})
test('称重只随机复用义乌仓原有两个托盘且禁止按订单新增', () => {
test('称重优先复用固定托盘并允许为无基线仓创建本轮托盘', () => {
assert.match(measurement, /REUSABLE_PALLET_CODES = Object\.freeze\(\['TP-001', 'YW-TP-002'\]\)/)
assert.match(measurement, /context\.request\('GET',[\s\S]*\/api\/platform\/v1\/pallets\?page=1&size=20/)
assert.match(measurement, /randomlyReusePalletIds\(candidates, palletCount/)
assert.match(measurement, /随机复用原有称重托盘/)
assert.doesNotMatch(measurement, /context\.request\('POST', '\/api\/platform\/v1\/pallets/)
assert.doesNotMatch(measurement, /创建称重托盘主数据/)
assert.match(measurement, /context\.request\('POST', '\/api\/platform\/v1\/pallets\?tenantId=0'/)
assert.match(measurement, /创建本轮称重托盘/)
assert.match(measurement, /measurement-fixture/)
})
test('称重脚本不新增库位且容量不足由仓库服务复用 A0 公共位', () => {