test(email): align document identity guards with picker cache

This commit is contained in:
red person
2026-10-28 10:04:55 +03:00
parent 1c5853003e
commit f780f1dce9
2 changed files with 3 additions and 3 deletions
@@ -55,7 +55,7 @@ def test_all_runtime_document_imports_share_one_module_url():
for path in runtime_files
for match in re.findall(r"document\.js\?v=([A-Za-z0-9_-]+)", path.read_text(encoding="utf-8"))
}
assert versions == {"20260916docctx2"}
assert versions == {"20261028emailpickerfiles2"}
def test_server_fallback_is_legacy_only_when_ui_state_is_absent():
+2 -2
View File
@@ -42,8 +42,8 @@ def test_document_reference_looks_clickable_and_has_keyboard_focus_feedback():
def test_document_module_has_one_browser_identity_for_restore_and_chat_send():
"""Different query strings create separate JS module selection stores."""
assert "/static/js/document.js?v=20260916docctx2" in INDEX
assert "./js/document.js?v=20260916docctx2" in APP
assert "/static/js/document.js?v=20261028emailpickerfiles2" in INDEX
assert "./js/document.js?v=20261028emailpickerfiles2" in APP
assert "document.js?v=20260913dirtysaveicon1" not in INDEX