test(baseline): align UI and model profile expectations

This commit is contained in:
Alexandre Teixeira
2026-09-22 23:27:17 +01:00
parent 9bc1cdcab0
commit c0a1cecc00
26 changed files with 108 additions and 77 deletions
+9 -9
View File
@@ -32,15 +32,15 @@ def test_stacked_labels_share_one_size_and_position_rule():
assert "top: 2px;" in STYLE
def test_narrow_topbar_reflows_essential_actions_instead_of_clipping_them():
assert "ge-topbar-overflow" in OVERFLOW
assert "topbar.classList.add('ge-topbar-overflow')" in OVERFLOW
assert "(max-width: 700px)" in OVERFLOW
assert ".ge-topbar.ge-topbar-overflow" in STYLE
assert "flex: 1 0 100%;" in STYLE
right_start = STYLE.index(".ge-topbar-overflow .ge-topbar-right")
overflow_right = STYLE[right_start:STYLE.index("}", right_start)]
assert "justify-content: flex-start;" in overflow_right
def test_narrow_topbar_scrolls_essential_actions_and_hides_ai_group_first():
assert "if (topbar.scrollWidth > topbar.clientWidth)" in OVERFLOW
assert "aiGroup.forEach(el => { el.style.display = 'none'; });" in OVERFLOW
assert "new ResizeObserver(() => syncOverflow())" in OVERFLOW
mobile = STYLE[STYLE.index("/* Editor topbar — scrolls horizontally") :]
topbar = mobile[mobile.index(".ge-topbar {") : mobile.index("}", mobile.index(".ge-topbar {"))]
assert "overflow-x: auto;" in topbar
assert "flex-wrap: nowrap;" in topbar
assert "justify-content: flex-start;" in topbar
def test_desktop_tool_rail_keeps_long_tool_names_readable():