Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Locate the dictation model search box by test id, not by placeholder copy (#7909)

Daniel Hanf260f09c36dc
diff --git a/studio/frontend/src/features/settings/tabs/voice-tab.tsx b/studio/frontend/src/features/settings/tabs/voice-tab.tsx
index 627c257b0d7..876671368f8 100644
--- a/studio/frontend/src/features/settings/tabs/voice-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/voice-tab.tsx
@@ -220,6 +220,7 @@ function SttModelPicker({
<Input
value={query}
onChange={(event) => setQuery(event.target.value)}
+ data-testid="stt-model-search"
placeholder={t(
"settings.voice.dictation.sttModelSearchPlaceholder",
)}
diff --git a/tests/studio/playwright_extra_ui.py b/tests/studio/playwright_extra_ui.py
index e4de62fd2ec..cb864ee5fff 100644
--- a/tests/studio/playwright_extra_ui.py
+++ b/tests/studio/playwright_extra_ui.py
@@ -568,7 +568,9 @@ with sync_playwright() as p:
page.get_by_label("Dictation engine").click()
page.get_by_role("option", name = "Local transcription").click()
page.get_by_label("Speech recognition model").click()
- page.get_by_placeholder("Search model").fill("whisper")
+ # By test id: the placeholder is translated, so re-worded copy stops
+ # matching and times out here instead of failing the real assertion.
+ page.get_by_test_id("stt-model-search").fill("whisper")
results = page.get_by_test_id("stt-model-results")
page.wait_for_function(
"""() => {