fix(админка): свежие файлы без ручной чистки кеша, скелетон вместо «Загрузки»

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
anor
2026-11-10 01:26:08 +10:00
co-authored by Claude Code
parent 40dcb44a7c
commit 55aca56b3f
12 changed files with 92 additions and 10 deletions
+10
View File
@@ -46,6 +46,16 @@ def test_legacy_and_v2_sections(env):
assert client.get(path, headers=h).status_code == 200, path
def test_admin2_static_revalidates(env):
"""Модули админки v2 обязаны перепроверяться: без no-cache браузер держал
старые файлы по своей эвристике, и правки не появлялись после выката.
Мутация: убрать заголовок — тест упадёт."""
client, h, db = env
r = client.get("/static/admin2/app.js")
assert r.status_code == 200
assert "no-cache" in r.headers.get("cache-control", "")
def test_customer_lifecycle(env):
client, h, db = env
import auth