优化
This commit is contained in:
@@ -19,7 +19,7 @@ test('dropship palletization adapter uses only the dedicated production PDA cont
|
||||
const api = await read('../api/pda-dropship.js')
|
||||
for (const route of [
|
||||
'/tasks/pending', '/cartons/resolve', '/cartons/count',
|
||||
'/pallets/bind-pending', '/seal'
|
||||
'/pallets/bind-pending', '/seal', '/unseal'
|
||||
]) assert.match(api, new RegExp(route.replaceAll('/', '\\/')))
|
||||
assert.doesNotMatch(api, /apiDownload|downloadAllDropshipPalletLabels|pallets\/print/)
|
||||
assert.match(api, /tasks\/pending\?\$\{params\.join\('&'\)\}/)
|
||||
@@ -61,12 +61,14 @@ test('palletization UI accepts carton and pre-generated pallet scans in either o
|
||||
assert.match(work, /startScanBroadcast/)
|
||||
assert.match(work, /lineDiffers[\s\S]*?ACCEPT_VARIANCE/)
|
||||
assert.match(work, /bindDropshipPendingCartons/)
|
||||
assert.match(work, /palletNo: this\.currentPallet/)
|
||||
assert.match(work, /palletNo: this\.assignableCurrentPallet/)
|
||||
assert.match(work, /继续装其他入仓单/)
|
||||
assert.match(work, /selectedPalletNo/)
|
||||
assert.match(work, /已选择仓库开放托盘/)
|
||||
assert.match(work, /直接扫描托盘码,只显示当前操作的托盘/)
|
||||
assert.match(work, /currentPalletDetails/)
|
||||
assert.match(work, /解除封托/)
|
||||
assert.match(work, /<uni-popup ref="unsealPopup"/)
|
||||
assert.doesNotMatch(work, /v-for="pallet in task\.pallets"/)
|
||||
assert.doesNotMatch(work, /downloadDropshipPalletLabel|downloadAllDropshipPalletLabels|打开当前托盘 A4 单|打开全部 A4 托盘单/)
|
||||
assert.match(work, /formatApiError/)
|
||||
|
||||
Reference in New Issue
Block a user