Version finder script to avoid stale browser UI
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user