fix(frontend): preserve timeout label success toast
Build and publish Docker images / Build and publish images (push) Successful in 2m21s

This commit is contained in:
2026-09-16 09:45:52 +08:00
parent 1cef2501ba
commit a0c6969da0
2 changed files with 12 additions and 1 deletions
@@ -37,6 +37,12 @@ describe('#parseAPIErrorResponse', () => {
expect(parseAPIErrorResponse('Error: 422 Failed')).toBe(
'提交的信息有误,请检查后重试。'
);
expect(parseAPIErrorResponse('timeout of 10000ms exceeded')).toBe(
'请求超时,请稍后再试。'
);
expect(parseAPIErrorResponse('已从会话 ID 14 移除标签 #超时关闭')).toBe(
'已从会话 ID 14 移除标签 #超时关闭'
);
expect(
parseAPIErrorResponse(new Error('Request failed with status code 401'))
).toBe('身份验证失败,请重新登录。');