fix: brancher la déconnexion du menu compte sur la déconnexion globale (fusion #141) — 7.85.3
FlowDeck CI / test (pull_request) Failing after 1s
FlowDeck CI / docker (pull_request) Skipped
FlowDeck CI / lint (push) Failing after 1s
FlowDeck CI / test (push) Failing after 1s
FlowDeck CI / docker (push) Skipped
FlowDeck CI / lint (pull_request) Failing after 10s

This commit is contained in:
Spark
2026-11-06 19:01:13 +00:00
parent e6f5cff870
commit fcc6cdf830
4 changed files with 33 additions and 1 deletions
+12
View File
@@ -33,6 +33,18 @@ def test_aucun_texte_chantier_rendu():
assert rendu.lstrip().startswith("<link")
def test_barre_deconnexion_branchee_globale():
"""Déconnexion du menu compte (fusion #141) : le gabarit branche
l'action « deconnexion » — destruction de la session locale
(/auth/logout) puis navigation vers la déconnexion globale de
l'émettrice (GET /sso/logout chez ObsiGate, retour ici). Avant le
correctif, aucune branche ne traitait l'action : clic sans effet."""
gabarit = (ROOT / "app/templates/_draco_bar.html").read_text()
assert 'act === "deconnexion"' in gabarit
assert 'fetch("/auth/logout"' in gabarit
assert '{{ draco_urls().obsigate }}/sso/logout?return_to=' in gabarit
def test_barre_v020_onglet_shaarit_et_garde_data_theme():
"""Barre v0.2.0 (commons @70c837a) : onglet ShaarIt entre Kanbante
et l'onglet agent, logo fourni tel quel, CSS vendangé verbatim