"""Tests for UI page registration wiring.""" import pytest @pytest.mark.integration class TestPageRegistration: """Verify page registration and mounted UI routes.""" def test_ui_mount_serves_registered_pages(self, app_client): """Mounted UI routes respond successfully when the full app is created.""" _, client = app_client homepage_response = client.get("/ui/homepage") documents_response = client.get("/ui/documents") people_response = client.get("/ui/people") sources_response = client.get("/ui/sources") jobs_response = client.get("/ui/jobs") tags_response = client.get("/ui/tags") settings_response = client.get("/ui/settings") assert homepage_response.status_code == 200 assert documents_response.status_code == 200 assert people_response.status_code == 200 assert sources_response.status_code == 200 assert jobs_response.status_code == 200 assert tags_response.status_code == 200 assert settings_response.status_code == 200 assert "Document Types" in settings_response.text assert "Person Roles" in settings_response.text assert "Tags" in settings_response.text assert "Prompts" in settings_response.text assert "Home Page Text" in settings_response.text assert "README.md" not in settings_response.text