优化PDA装柜完成错误提示

This commit is contained in:
2026-08-24 20:47:36 +08:00
parent 258f5414d1
commit f6d4ed6c3c
2 changed files with 19 additions and 1 deletions
+9
View File
@@ -243,3 +243,12 @@ test('picking mutations stay closed until the canonical task has been claimed',
assert.match(body, /if \(!this\.requirePickingOperation\(\)\) return/, `${method} should wait for claim`)
}
})
test('completion shows a Chinese server failure with a request correlation id', () => {
assert.match(page, /remoteFailureMessage\(error, fallback = '操作失败'\)/)
assert.match(page, /\^internal server error\$\/i/)
assert.match(page, /服务端处理异常,请联系管理员/)
assert.match(page, /请求编号/)
assert.match(page, /requestIdFromServer: error\.requestId/)
assert.match(page, /this\.remoteFailureMessage\(error, '装柜完成失败'\)/)
})