"""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") upload_response = client.get("/ui/upload", follow_redirects=False) documents_response = client.get("/ui/documents") people_response = client.get("/ui/people") sources_response = client.get("/ui/sources") jobs_response = client.get("/ui/jobs") assert homepage_response.status_code == 200 assert upload_response.status_code == 307 assert documents_response.status_code == 200 assert people_response.status_code == 200 assert sources_response.status_code == 200 assert jobs_response.status_code == 200