from pathlib import Path def test_discovery_page_has_insecure_context_uuid_fallback(): html = Path("app/static/discovery.html").read_text(encoding="utf-8") assert "function createUserId()" in html assert "crypto.randomUUID()" not in html assert "getRandomValues" in html