fix(админка): свежие файлы без ручной чистки кеша, скелетон вместо «Загрузки»
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user