Update workflow test cases and refine web search toggle labels

This commit is contained in:
2026-06-15 20:40:35 +02:00
parent 9aac9ccb2b
commit a3abc68d70
2 changed files with 8 additions and 1 deletions

View File

@@ -61,6 +61,12 @@ class RouterAndBuiltinTests(unittest.IsolatedAsyncioTestCase):
)
self.assertEqual(result["workflow_slug"], "web-answer")
result = await select_workflow(
db, message="hello", recent_messages=[], attachments=[],
library_slug="notes", router_model=None, chat_model="model", web_search_enabled=True,
)
self.assertEqual(result["workflow_slug"], "knowledge-web-answer")
result = await select_workflow(
db, message="hello", recent_messages=[], attachments=[],
library_slug=None, router_model=None, chat_model="model", web_search_enabled=False,

View File

@@ -2069,7 +2069,8 @@ async function createNewChat() {
type="button"
className={"websearch-toggle" + (webSearchEnabled ? " active" : "")}
onClick={toggleWebSearch}
title="Toggle web search"
title={webSearchEnabled ? "Web search forced" : "Web search automatic"}
aria-label={webSearchEnabled ? "Web search forced" : "Web search automatic"}
aria-pressed={webSearchEnabled}
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"