Version finder script to avoid stale browser UI

This commit is contained in:
anor
2026-12-04 06:30:57 +10:00
parent 8d8b812054
commit 7e1b045f7f
5 changed files with 16 additions and 10 deletions
+3 -1
View File
@@ -244,12 +244,14 @@ def test_finder_quote_is_saved_and_revised_in_place(api, monkeypatch):
def test_finder_page_is_reachable_from_site(api):
import main
client, _, _ = api
page = client.get("/podbor")
assert page.status_code == 200
assert "Подбор норм" in page.text
assert 'src="/static/norm-finder.js"' in page.text
assert f'src="/static/norm-finder.js?v={main.APP_VERSION}"' in page.text
assert 'href="/podbor">Найти норму без входа</a>' in client.get("/").text
assert client.get("/static/norm-finder.js").headers["Cache-Control"] == "no-cache, must-revalidate"
def test_finder_draft_is_scoped_revisioned_and_never_totals_missing_costs(api, monkeypatch):