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.

Settings tabs smoke: hold the shortcut recorder box before pressing Backspace (#15032)

Daniel Han132a208edb47
diff --git a/tests/studio/playwright_settings_tabs.py b/tests/studio/playwright_settings_tabs.py
index a38d5ca5b11..c87985f31f5 100644
--- a/tests/studio/playwright_settings_tabs.py
+++ b/tests/studio/playwright_settings_tabs.py
@@ -566,8 +566,11 @@ def run_shortcut_recorder(page) -> None:
click_forced(chord, timeout = 15000)
box.wait_for(state = "visible", timeout = 5000)
+ # Hold the box before the key: Backspace closes the recorder in the same render (#14896), so
+ # resolving the locator afterwards waits 30 s for an input that is already gone.
+ recorder = box.element_handle()
page.keyboard.press("Backspace")
- until(page, "el => el && !el.isConnected", arg = box.element_handle())
+ until(page, "el => el && !el.isConnected", arg = recorder)
state["cleared"] = {"shown": chord.inner_text(), "stored": page.evaluate(stored_js)}
click_forced(page.get_by_role("button", name = "Restore defaults"), timeout = 15000)