Add end-to-end tests for workspace switching and backend tests for ask_question tool

- Implemented E2E tests for workspace switching functionality, covering scenarios such as switching workspaces, data isolation, language preference maintenance, and UI updates.
- Added tests to ensure workspace data is cleared on logout and handles unsaved changes during workspace switches.
- Created comprehensive backend tests for the ask_question tool, validating question creation, execution, answer handling, cancellation, and timeout scenarios.
- Included edge case tests to ensure robustness against duplicate questions and invalid answers.
This commit is contained in:
catlog22
2026-01-31 16:02:20 +08:00
parent 715ef12c92
commit 345437415f
33 changed files with 7049 additions and 105 deletions

View File

@@ -5,7 +5,8 @@
"switchToLightMode": "Switch to light mode",
"switchToDarkMode": "Switch to dark mode",
"userMenu": "User menu",
"actions": "Actions"
"actions": "Actions",
"notifications": "Notifications"
},
"actions": {
"save": "Save",
@@ -179,5 +180,13 @@
"documentation": "Documentation",
"tutorials": "Tutorials"
}
},
"askQuestion": {
"defaultTitle": "Questions",
"description": "Please answer the following questions",
"textPlaceholder": "Enter your answer...",
"yes": "Yes",
"no": "No",
"required": "This question is required"
}
}

View File

@@ -5,7 +5,8 @@
"switchToLightMode": "切换到浅色模式",
"switchToDarkMode": "切换到深色模式",
"userMenu": "用户菜单",
"actions": "操作"
"actions": "操作",
"notifications": "通知"
},
"actions": {
"save": "保存",
@@ -179,5 +180,13 @@
"documentation": "文档",
"tutorials": "教程"
}
},
"askQuestion": {
"defaultTitle": "问题",
"description": "请回答以下问题",
"textPlaceholder": "输入您的答案...",
"yes": "是",
"no": "否",
"required": "此问题为必填项"
}
}