This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Timmy-time-dashboard/tests/test_swarm_live_page.py

24 lines
831 B
Python
Raw Normal View History

"""Tests for the GET /swarm/live page route."""
class TestSwarmLivePage:
def test_swarm_live_returns_html(self, client):
resp = client.get("/swarm/live")
assert resp.status_code == 200
assert "text/html" in resp.headers["content-type"]
def test_swarm_live_contains_dashboard_title(self, client):
resp = client.get("/swarm/live")
fix: comprehensive iPhone UI overhaul — glassmorphism, responsive layouts, theme unification - base.html: add missing {% block extra_styles %}, mobile hamburger menu with slide-out nav, interactive-widget viewport meta, -webkit-text-size-adjust - style.css: define 15+ missing CSS variables (--bg-secondary, --text-muted, --accent, --success, --danger, etc.), add missing utility classes (.grid, .stat, .agent-card, .agent-avatar, .form-group), glassmorphism card effects, iPhone breakpoints (768px, 390px), 44pt min touch targets, smooth animations - mobile.html: rewrite with proper theme variables, glass cards, touch-friendly quick actions grid, chat with proper message bubbles - swarm_live.html: replace undefined CSS vars, use mc-panel theme cards - marketplace.html: responsive agent cards that stack on iPhone, themed pricing - voice_button.html & voice_enhanced.html: proper theme integration, touch-sized buttons, themed result containers - create_task.html: mobile-friendly forms with 16px font (prevents iOS zoom) - tools.html & creative.html: themed headers, responsive column stacking - spark.html: replace all hardcoded blue (#00d4ff) colors with theme purple/orange - briefing.html: replace hardcoded bootstrap colors with theme variables Fixes: header nav overflow on iPhone (7 links in single row), missing extra_styles block silently dropping child template styles, undefined CSS variables breaking mobile/swarm/marketplace/voice pages, sub-44pt touch targets, missing -webkit-text-size-adjust, inconsistent color themes. 97 UI tests pass (91 UI-specific + 6 creative route). https://claude.ai/code/session_01JiyhGyee2zoMN4p8xWYqEe
2026-02-24 22:25:04 +00:00
assert "LIVE SWARM" in resp.text
def test_swarm_live_contains_websocket_script(self, client):
resp = client.get("/swarm/live")
assert "/swarm/live" in resp.text
assert "WebSocket" in resp.text
def test_swarm_live_contains_stat_elements(self, client):
resp = client.get("/swarm/live")
assert "stat-agents" in resp.text
assert "stat-active" in resp.text
assert "stat-tasks" in resp.text