Release/test 合并上生产 #1

Merged
admin merged 236 commits from release/test into main 2026-09-17 11:51:50 +08:00
Showing only changes of commit b62b16cca7 - Show all commits
@@ -104,6 +104,12 @@ test('treats only body code 200 as success', () => {
assert.doesNotMatch(httpSource, /if \(envelope\.code !== '0'\)/)
})
test('shows the backend credential error on login', () => {
assert.match(httpSource, /new ApiError\(apiErrorMessage\(envelope\.message, fieldErrors\), envelope\.code/)
assert.match(loginSource, /ElMessage\.error\(error instanceof Error \? error\.message : '登录失败,请检查账号后重试'\)/)
assert.doesNotMatch(loginSource, /登录状态已失效,请重新登录/)
})
test('keeps a valid local session during temporary context and refresh outages', () => {
assert.match(authStoreSource, /function isExpiredSessionError/)
assert.match(authStoreSource, /if \(isExpiredSessionError\(error\)\)/)