优化
This commit is contained in:
@@ -8,7 +8,7 @@ test('overseas PDA is an independent Vue 3 app with separate packaging identity'
|
||||
const [manifest, pages, pkg] = await Promise.all([
|
||||
read('../src/manifest.json'), read('../src/pages.json'), read('../package.json')
|
||||
])
|
||||
assert.match(manifest, /"name"\s*:\s*"柏悦物流海外版"/)
|
||||
assert.match(manifest, /"name"\s*:\s*"柏悦物流\s*PDA\s*海外版"/)
|
||||
assert.match(manifest, /"packagename"\s*:\s*"com\.baiyuelogistics\.pda\.overseas"/)
|
||||
assert.match(manifest, /"vueVersion"\s*:\s*"3"/)
|
||||
assert.doesNotMatch(pages, /pages\/picking|pages\/tasks/)
|
||||
@@ -41,3 +41,13 @@ test('login has no committed demo credentials and inbound operation implements t
|
||||
assert.match(overseas, /replaceTokens|refreshOverseasToken/)
|
||||
assert.match(overseas, /requestId/)
|
||||
})
|
||||
|
||||
test('unimplemented warehouse operations cannot submit prototype scans', async () => {
|
||||
const [operation, home, module] = await Promise.all([
|
||||
read('../src/pages/operation/operation.vue'), read('../src/pages/home/home.vue'), read('../src/pages/module/module.vue')
|
||||
])
|
||||
assert.doesNotMatch(operation, /prototypeScan|prototypeInput/)
|
||||
assert.match(operation, /功能暂未开放|扫码不会提交/)
|
||||
assert.match(home, /operation\.badge/)
|
||||
assert.match(module, /专用接口、权限与仓库范围契约完成前保持禁用/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user