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.

Stop asserting the titlebar navigation padding from source (#10326)

Daniel Han71d80152db2d
diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.py
index 9c4842179fb..d9425bda0b3 100644
--- a/tests/studio/test_desktop_reliability_frontend_contract.py
+++ b/tests/studio/test_desktop_reliability_frontend_contract.py
@@ -605,7 +605,14 @@ def test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker(
assert "window.setTimeout(() =>" in titlebar
assert "scheduleMaximizedRefresh();" in titlebar
- assert '"pl-3"' in titlebar
+ # The navigation box's left inset is deliberately not asserted here. Whether that
+ # element ends up with one is a computed style: it depends on the tailwind-merge
+ # cascade, the important modifier, whether an arbitrary value is valid CSS, whether
+ # the class is hoisted into a const or interpolated into a template hole, and
+ # whether DesktopTitlebarNavigation applies it from its own className prop. None of
+ # that is decidable from this file, and the exact-value form this replaces failed
+ # #10321 for retuning 12px to 16px, which is what an alignment pass is for. A
+ # computed-style check belongs in a driver that renders the titlebar.
assert 'isTauri && !isMobile && !pinned && view.mode !== "compare"' in chat_page
assert "pl-[var(--studio-collapsed-chat-controls-inset,0.75rem)]" in chat_page