diff --git a/tests/test_draco_alertes.py b/tests/test_draco_alertes.py index eafebbe..11fc341 100644 --- a/tests/test_draco_alertes.py +++ b/tests/test_draco_alertes.py @@ -1,4 +1,4 @@ -"""Fusion #69 — Alertes unifiées (chantier 2, Flowdeck). +"""Fusion #69 — Alertes unifiées (chantier 2 + chantier 5, Flowdeck). Source réelle de Flowdeck : GET /api/notifications (non lues = actives, `url` relative pour le lien profond), déjà exposée et @@ -67,3 +67,24 @@ def test_notifications_api_et_cors_soeur(client): "Access-Control-Request-Method": "GET"}) assert r5.headers.get("access-control-allow-origin") == "https://tiktak-dev.dracodev.net" assert r5.headers.get("access-control-allow-credentials") == "true" + + +def test_chantier5_onglet_console_spark_et_alertes_onglets(client): + """Chantier 5 : onglet Console Spark en dernier dans la barre + (gabarit lu, pages authentifiées inatteignables en sandbox comme + pour le test #69), et vue Alertes en onglets (module + styles).""" + from pathlib import Path + + gabarit = Path("app/templates/_draco_bar.html").read_text() + nav = gabarit.split('