Self-hosted AI workspace.
Python
from pathlib import Path
from tests.helpers.stylesheets import app_css
STYLE_TEXT = app_css()
def test_mobile_sidebar_uses_the_sidebar_theme_surface():
css = STYLE_TEXT
mobile_drawer = css[css.index("/* Sidebar overlays chat on mobile */"):css.index("/* Backdrop behind sidebar */")]
assert "background: var(--sidebar-bg, var(--panel)) !important;" in mobile_drawer
assert "background: var(--panel) !important;" not in mobile_drawer