优化
This commit is contained in:
@@ -62,7 +62,18 @@ test('PDA module covers the container-number receiving contract and excludes out
|
||||
assert.match(source, /FBA和OVERSEAS箱码resolve都必须HTTP 200\/code 200并返回当前柜唯一入仓码/)
|
||||
assert.match(source, /const matches = inbounds\.filter/)
|
||||
assert.match(source, /!Array\.isArray\(resolved\?\.inboundCode\)/)
|
||||
assert.match(source, /matches\.length === 1/)
|
||||
assert.match(source, /destinations\.size === 1/)
|
||||
assert.doesNotMatch(source, /\.split\([^\n]*['"]#['"]/)
|
||||
assert.match(source, /`\$\{item\.inboundCode\}#PDA-CONTRACT-\$\{index \+ 1\}`/)
|
||||
for (const negative of ['无#箱码被服务端拒绝', '空#前缀箱码被服务端拒绝',
|
||||
'未命中入仓码前缀被服务端拒绝', '其他柜箱码前缀被当前锁定柜拒绝',
|
||||
'OVERSEAS缺少真实manifest行时不得按标准箱码推导']) {
|
||||
assert.ok(source.includes(negative), negative)
|
||||
}
|
||||
assert.doesNotMatch(source, /FBA标准箱码序号超范围被拒绝/)
|
||||
assert.match(source, /FBA与OVERSEAS箱码resolve均为纯查询且零状态写入/)
|
||||
assert.match(source, /receivingSnapshot\(afterResolve\.data\) === beforeResolve/)
|
||||
assert.match(source, /const fixturesConserved = overseasFixtures\.length === expectedPending/)
|
||||
assert.match(source, /OVERSEAS实装箱唛与待收箱数守恒/)
|
||||
assert.match(source, /for \(const \[index, fixture\] of overseasFixtures\.entries\(\)\)/)
|
||||
@@ -108,6 +119,21 @@ test('real-device legacy FBA carton rejection is retained as regression evidence
|
||||
assert.match(source, /a0409Message\(response, \/\^OVERSEAS destination must use carton-by-carton scanning; bulk count is forbidden\$\//)
|
||||
})
|
||||
|
||||
test('real-device deployed FBA resolve A0404 is retained until server-side inbound-prefix matching lands', () => {
|
||||
const evidence = {
|
||||
http: 200,
|
||||
code: 'A0404',
|
||||
message: 'Carton mark was not found',
|
||||
requestId: 'a716e2c2-dc10-4d07-8014-7438afb63090',
|
||||
traceId: '6ab8fcfcd812056ad6570d3b1652157b',
|
||||
databaseFact: 'current FBA has no ll_inbound_plan_carton manifest',
|
||||
}
|
||||
assert.equal(evidence.code, 'A0404')
|
||||
assert.equal(evidence.message, 'Carton mark was not found')
|
||||
assert.match(evidence.databaseFact, /no ll_inbound_plan_carton manifest/)
|
||||
assert.match(source, /a0404Message\(response, \/\^Carton mark was not found\$\//)
|
||||
})
|
||||
|
||||
test('PDA receiving lifecycle is ordered from candidate claim through photos, mode-specific receipts, pallet and complete', () => {
|
||||
const orderedTokens = [
|
||||
"'查询当前客户待收柜号'", "'选择柜号并建立WAIT_SIGN会话'",
|
||||
|
||||
Reference in New Issue
Block a user