"""Functional tests for the dashboard — real HTTP requests, no mocking. The dashboard runs with Ollama offline (graceful degradation). These tests verify what a real user sees when they open the browser. """ import pytest class TestDashboardLoads: """Verify the dashboard serves real HTML pages.""" def test_index_page(self, app_client): response = app_client.get("/") assert response.status_code == 200 assert "text/html" in response.headers["content-type"] # The real rendered page should have the base HTML structure assert "