优化
This commit is contained in:
@@ -116,7 +116,7 @@ test('container UI locks and signs once, then renders the resolved destination g
|
||||
|
||||
assert.match(inboundApi, /\$\{RECEIVING_BASE\}\/\$\{encodeURIComponent\(containerNo\)\}\/prepare/)
|
||||
assert.match(inboundApi, /current\('\/sign'\)/)
|
||||
assert.match(operation, /prepareReceivingContainer\(this\.selected\.containerNo, \{ idempotencyKey: key\.value \}\)/)
|
||||
assert.match(operation, /prepareReceivingContainer\(this\.selected\.containerNo, this\.selected\.sourceContainerBookingId, \{ idempotencyKey: key\.value \}\)/)
|
||||
assert.match(operation, /getCurrentReceiving\(\)[\s\S]*applyCurrentReceiving\(current\)/)
|
||||
assert.match(operation, /applyWarehouseProfile\(await getCurrentWarehouseProfile\(\)\)/)
|
||||
assert.match(operation, /values\.map\(\(item\) => this\.validateReceivingWarehouse/)
|
||||
@@ -139,7 +139,7 @@ test('PDA does not infer container eligibility from partial plan workflow states
|
||||
assert.match(adapter, /allPlansReady: value\.allPlansReady === true/)
|
||||
assert.match(adapter, /operable: value\.operable === true/)
|
||||
assert.match(operation, /if \(!candidate\.operable\) \{ receiving\.selected = candidate; this\.detailOpen = true; return \}/)
|
||||
assert.match(operation, /if \(!this\.selected\?\.containerNo \|\| !this\.selected\?\.allPlansReady \|\| !this\.selected\?\.operable/)
|
||||
assert.match(operation, /if \(!this\.selected\?\.containerNo \|\| !this\.selected\?\.sourceContainerBookingId \|\| !this\.selected\?\.allPlansReady \|\| !this\.selected\?\.operable/)
|
||||
assert.match(operation, /recoverCurrentAfterConflict\(error, true\)/)
|
||||
assert.match(operation, /preserveEvidence \? error : null[\s\S]*this\.candidateError = preserveEvidence \? error : null/)
|
||||
assert.doesNotMatch(inbound, /sort\(/)
|
||||
|
||||
@@ -49,6 +49,10 @@ test('first scan and receipt requests confirm server reservations without resour
|
||||
assert.ok(gate)
|
||||
assert.doesNotMatch(gate, /mergeAllowed|assigned|urgent/)
|
||||
assert.match(gate, /resolvedPallet\?\.compatible/)
|
||||
assert.match(page, /const MAX_PACKAGES_PER_PALLET = 66/)
|
||||
assert.match(page, /Number\(this\.packageCount\) > MAX_PACKAGES_PER_PALLET/)
|
||||
assert.match(page, /一个托盘最多只能收66箱,请拆分到其他托盘/)
|
||||
assert.match(page, /this\.showToast\(PALLET_CAPACITY_MESSAGE, 'error'\)/)
|
||||
})
|
||||
|
||||
test('one-click dropship inbound is marked only by an explicit server boolean', () => {
|
||||
|
||||
Reference in New Issue
Block a user