This commit is contained in:
2026-09-02 10:28:43 +08:00
parent 49aad23098
commit cb8d89eae5
3 changed files with 7 additions and 4 deletions
+4 -2
View File
@@ -35,13 +35,15 @@ test('overseas workbench contains only confirmed inbound and in-warehouse domain
})
test('login has no committed demo credentials and inbound operation implements the locked container flow', async () => {
const [login, runtime, operation, inbound, adapter, overseas] = await Promise.all([
read('../src/pages/login/login.vue'), read('../src/config/runtime.js'),
const [login, auth, runtime, operation, inbound, adapter, overseas] = await Promise.all([
read('../src/pages/login/login.vue'), read('../src/api/auth.js'), read('../src/config/runtime.js'),
read('../src/pages/operation/operation.vue'), read('../src/api/inbound.js'), read('../src/api/receiving-adapter.js'), read('../src/api/overseas.js')
])
assert.match(login, /柏悦物流海外版/)
assert.doesNotMatch(login, /ChangeMe|platform_admin/)
assert.match(login, /DEV_LOGIN\.username|DEV_LOGIN\.password/)
assert.match(auth, /authRequest\('\/auth\/login', \{ loginId, password \}\)/)
assert.doesNotMatch(auth, /authRequest\('\/auth\/login', \{ username, password \}\)/)
assert.match(runtime, /runtimeEnvironment\.DEV|VITE_PDA_DEV_USERNAME|VITE_PDA_DEV_PASSWORD/)
assert.match(runtime, /'\/overseas-api'/)
assert.match(runtime, /#ifdef H5[\s\S]*?VITE_H5_AUTH_API_BASE_URL/)