feat(pda): connect overseas inbound receiving
This commit is contained in:
@@ -25,12 +25,16 @@ test('overseas workbench contains only confirmed inbound and in-warehouse domain
|
||||
assert.match(runtime, /VITE_OVERSEAS_API_BASE_URL/)
|
||||
})
|
||||
|
||||
test('login has no committed demo credentials and operation page consumes hardware scans', async () => {
|
||||
const [login, operation] = await Promise.all([
|
||||
read('../src/pages/login/login.vue'), read('../src/pages/operation/operation.vue')
|
||||
test('login has no committed demo credentials and inbound operation consumes real overseas APIs', async () => {
|
||||
const [login, operation, inbound, overseas] = await Promise.all([
|
||||
read('../src/pages/login/login.vue'), read('../src/pages/operation/operation.vue'),
|
||||
read('../src/api/inbound.js'), read('../src/api/overseas.js')
|
||||
])
|
||||
assert.match(login, /柏悦物流海外版/)
|
||||
assert.doesNotMatch(login, /ChangeMe|platform_admin/)
|
||||
assert.match(operation, /startScanBroadcast/)
|
||||
assert.match(operation, /业务接口待接入/)
|
||||
for (const action of ['pushInboundTask', 'assignInboundPallet', 'countInboundPackages', 'pickInboundPackages', 'scanInboundCarton', 'uploadUnloadPhotoFile', 'bindUnloadPhotos', 'completeInboundTask']) assert.match(operation, new RegExp(action))
|
||||
for (const path of ['/push', '/allocations/', '/cartons/scan', '/unload-photos', '/complete']) assert.match(inbound, new RegExp(path.replace('/', '\\/')))
|
||||
assert.match(overseas, /replaceTokens|refreshOverseasToken/)
|
||||
assert.match(overseas, /requestId/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user