diff --git a/static/index.html b/static/index.html index ea14cd7..b39963e 100644 --- a/static/index.html +++ b/static/index.html @@ -481,6 +481,10 @@ Spaces +
diff --git a/tests/test_mobile_layout.py b/tests/test_mobile_layout.py index 2d41ba6..952c138 100644 --- a/tests/test_mobile_layout.py +++ b/tests/test_mobile_layout.py @@ -175,3 +175,34 @@ def test_composer_textarea_font_size_mobile(): # Check for 16px font-size on the textarea in a mobile breakpoint assert re.search(r'font-size:16px', CSS), \ "Composer textarea must have font-size:16px at mobile widths to prevent iOS zoom-on-focus" + + + +# ── Profiles button in mobile bottom nav ───────────────────────────────────── + +def test_mobile_profiles_button_present(): + """Mobile bottom nav must include a Profiles button (PR #265).""" + assert 'data-panel="profiles"' in HTML and 'mobileSwitchPanel' in HTML, \ + "Mobile nav must have a Profiles button with data-panel='profiles' and mobileSwitchPanel" + + +def test_mobile_profiles_button_uses_mobileSwitchPanel(): + """Profiles mobile nav button must use mobileSwitchPanel, not raw switchPanel.""" + import re + match = re.search( + r'