tt-2026-11-079 : bouton masquer/afficher la barre laterale (portable, iPad) et tiroir sur telephone a la place de la barre du bas

This commit is contained in:
Claude committed 2026-11-20 10:27:25 +01:00
1 parent ea7846ba1c
commit d1a1f412d3
4 files changed
+141 -29

No files matched your search

+14
View File
@@ -67,3 +67,17 @@ def test_renommage_et_suppression_en_cascade(client):
def test_renommage_doublon_refuse(client):
cid = client.post("/api/v1/categories", json={"name": "Zeta"}).json()["id"]
assert client.put(f"/api/v1/categories/{cid}", json={"name": "Tunis"}).status_code == 400
def test_barre_laterale_reductible_et_tiroir():
"""tt-2026-11-079 : bouton masquer/afficher la barre latérale (portable, tablette) et tiroir sur téléphone."""
html = (STATIC / "index.html").read_text(encoding="utf-8")
css = (STATIC / "app.css").read_text(encoding="utf-8")
js = (STATIC / "app.js").read_text(encoding="utf-8")
assert html.count("<nav") == 1 and "nav-mobile" not in html + css + js
for ident in ["nav-bascule", "nav-ouvrir", "nav-voile", "nav-corps", "barre-mobile", "barre-titre"]:
assert f'id="{ident}"' in html, ident
assert 'aria-expanded="true"' in html and 'aria-label="Ouvrir le menu"' in html
assert ".nav-reduite" in css and ".nav-ouverte" in css and "min-width: 761px" in css
assert "courrier.nav" in js and "matchMedia('(max-width: 760px)')" in js and "'Escape'" in js
assert "panneau:" in js