From 99a7ebd5045d24465c9c481b16c8491626a200d0 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 28 Oct 2026 22:35:55 -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_dashboard_static_versioned.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_dashboard_static_versioned.py diff --git a/tests/test_dashboard_static_versioned.py b/tests/test_dashboard_static_versioned.py new file mode 100644 index 0000000..8ab1153 --- /dev/null +++ b/tests/test_dashboard_static_versioned.py @@ -0,0 +1,12 @@ +"""Page Projets (#47) : les fichiers qui portent le menu ⋯ et la +copie d'URL doivent être versionnés, sinon le navigateur garde +l'ancien CSS/JS après une release alors que le HTML est neuf — +c'est exactement ce qui a fait paraître la 0.38.0 inefficace +(menu toujours transparent, bouton de copie présent mais inerte). +""" + + +def test_dashboard_static_assets_are_versioned(client, fake_gitea): + page = client.get("/") + assert "/static/css/style.css?v=" in page.text + assert "/static/js/dashboard.js?v=" in page.text