"""Icônes monochromes (#59, suite) : plus d'emoji colorés dans les gabarits applicatifs (hors barre Fusion partagée, favicons et contenu utilisateur ), étoile et thème en symboles monochromes. """ def test_pas_d_emoji_colores_dans_les_gabarits(): import pathlib emoji = ["🎯", "🔮", "🩺", "📖", "🏷️", "🧱", "➕", "📝", "💾", "📎", "💬", "📄", "📲", "📤", "✍️", "⚡", "🔌", "📱", "📈", "💤", "👥", "🔭", "📜", "🧾", "🧠", "👀", "📦", "🐌", "🧟", "🗝️", "🐙", "🍵", "🟢", "🔴", "✅", "❌", "⭐", "🐢", "⏱️", "📊", "🗣️", "🛩️", "⚙️", "📰", "🗄️", "🖥️", "🛠️", "🧭", "🎛️", "⌨️", "🔗", "🌆", "🚧", "🚫", "⏭️", "🔁", "☀️", "🌙"] for path in pathlib.Path("app/templates").glob("*.html"): if path.name in ("_draco_bar.html",): continue text = path.read_text(encoding="utf-8") for line in text.splitlines(): if 'rel="icon"' in line: continue for e in emoji: assert e not in line, (path.name, e, line.strip()[:100]) def test_etoile_et_theme_monochromes(client, fake_gitea): css = client.get("/static/css/style.css").text # L'étoile n'est plus jaune : couleur texte, épinglée = texte plein. # (#fbbf24 reste pour l'âge des cartes sur le wallboard, une # information sémantique, pas une icône.) assert '.star-btn[data-starred="1"]' in css assert "color: var(--text-2);" in css js = client.get("/static/js/stars.js").text assert "⭐" not in js nav = client.get("/static/js/nav.js").text assert "☀️" not in nav and "🌙" not in nav