From 911f07362fbdb5fd4f4db35b4660ae116d9d059f Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 29 Oct 2026 11:35:47 -0400 Subject: [PATCH] =?UTF-8?q?Page=20Projets=20:=20copie=20URL=20dans=20le=20?= =?UTF-8?q?menu=20=E2=8B=AF=20+=20refonte=20th=C3=A8me=20barre=20Fusion/Sp?= =?UTF-8?q?ark=20(#44,=20#45)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tuile_pied.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/test_tuile_pied.py diff --git a/tests/test_tuile_pied.py b/tests/test_tuile_pied.py new file mode 100644 index 0000000..ae9a408 --- /dev/null +++ b/tests/test_tuile_pied.py @@ -0,0 +1,37 @@ +"""Tuile Projets et pied de sidebar : ergonomie refondue. + +Tuile : en-tête groupé, avancement labellisé, jalon étiqueté, +pied en 2 rangées avec répartition labellisée par colonne. +Pied : Sortir icône seule, fraîcheur en pastille discrète. +""" + + +def test_tuile_structure(client, fake_gitea): + page = client.get("/") + assert 'class="card-header-left"' in page.text + assert 'class="card-header-actions"' in page.text + assert 'class="foot-main"' in page.text + assert 'class="foot-dist"' in page.text + # Répartition, avancement et jalon sont conditionnels (stats / + # jalon) : on les vérifie dans le gabarit, pas dans la page de + # test sans données. + tpl = open("app/templates/dashboard.html", encoding="utf-8").read() + assert 'aria-label="Répartition par colonne"' in tpl + assert 'class="progress-head"' in tpl + assert "Avancement" in tpl + assert 'class="ms-kicker">Prochain jalon' in tpl + assert "COLUMN_LABELS[col]" in tpl + + +def test_pied_sidebar_structure(): + tpl = open("app/templates/_header.html", encoding="utf-8").read() + assert 'class="side-foot-user"' in tpl + assert 'class="side-foot-meta"' in tpl + assert 'class="side-logout logout-icon"' in tpl + assert 'aria-label="Se déconnecter"' in tpl + assert " Sortir" not in tpl + assert 'class="fresh-dot"' in tpl + css = open("static/css/style.css", encoding="utf-8").read() + assert ".side-foot-meta" in css + assert ".fresh-dot" in css + assert ".logout-icon" in css