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.

Tests: follow Compare chat into the More submenu in the Playwright chat UI driver (#6153)

Daniel Han2599f9fe9d9b
diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py
index dc62194be8b..4739d519d95 100644
--- a/tests/studio/playwright_chat_ui.py
+++ b/tests/studio/playwright_chat_ui.py
@@ -1100,6 +1100,22 @@ with sync_playwright() as p:
plus_btn.click(force = True)
page.wait_for_timeout(400)
compare_item = page.get_by_role("menuitem", name = re.compile(r"Compare chat", re.I)).first
+ if compare_item.count() == 0:
+ # The plus menu was decluttered: Compare chat now lives in the
+ # "More" submenu; hover (then click as fallback) to open it.
+ more_trigger = page.get_by_role("menuitem", name = re.compile(r"^More$", re.I)).first
+ if more_trigger.count() > 0:
+ more_trigger.hover()
+ page.wait_for_timeout(400)
+ compare_item = page.get_by_role(
+ "menuitem", name = re.compile(r"Compare chat", re.I)
+ ).first
+ if compare_item.count() == 0:
+ more_trigger.click(force = True)
+ page.wait_for_timeout(400)
+ compare_item = page.get_by_role(
+ "menuitem", name = re.compile(r"Compare chat", re.I)
+ ).first
if compare_item.count() > 0:
compare_item.click(force = True)
page.wait_for_timeout(800)