This commit is contained in:
2026-08-27 11:09:51 +08:00
parent 4612181ab0
commit c1b136c3d6
4 changed files with 50 additions and 14 deletions
@@ -26,6 +26,15 @@ test('随机线路只固定义乌仓并从客户真实可计价候选选择', ()
assert.doesNotMatch(runner, /channel-name|channel-code/)
})
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, /创建称重托盘主数据/)
})
test('八千票执行器逐票记录且失败后继续', () => {
assert.match(runner, /positiveInteger\(values\.get\('count'\), 8000/)
assert.match(runner, /positiveInteger\(values\.get\('box-max'\), 300/)