This commit is contained in:
2026-08-19 09:14:38 +08:00
parent eedaa2f080
commit 372ec3dc37
10 changed files with 217 additions and 62 deletions
@@ -51,6 +51,9 @@ test('creates one real backend draft per order row and keeps its products togeth
})
test('requires the old inbound code globally only while legacy manual mode is active', () => {
assert.match(source, /async function refreshInboundCodePolicyForWrite\(\)/)
assert.match(source, /if \(!await refreshInboundCodePolicyForWrite\(\)\) return/)
assert.match(source, /if \(policy\.mode === 'AUTO'\)[\s\S]*?row\.inboundCode = ''/)
assert.match(source, /manualInboundCodeRequired\.value[\s\S]*?rows\.findIndex\(\(row\) => !row\.inboundCode\.trim\(\)\)/)
assert.match(source, /请填写第 \$\{missingInboundCodeIndex \+ 1\} 行的旧系统入仓码/)
assert.match(source, /!row\.channelKey \|\| !row\.destinationWarehouseName/)