From 1660e1203dbfa14b280b29c010696bdfa53ba73c Mon Sep 17 00:00:00 2001 From: Saberlve Date: Wed, 15 Apr 2026 12:50:02 +0800 Subject: [PATCH] test: restore narrow modal state contract --- tests/test_ui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_ui.py b/tests/test_ui.py index ee2ff68..f595b7a 100644 --- a/tests/test_ui.py +++ b/tests/test_ui.py @@ -41,7 +41,11 @@ def test_index_contains_import_modal_controls(tmp_path) -> None: assert 'id="item-preview-popover"' in html assert 'const ABSTRACT_PREVIEW_DELAY_MS = 3000;' in html assert 'isImportModalOpen: false' in html + assert "currentProjectName: null" in html + assert "collectionItemsLoaded: false" in html + assert "nextCollectionItemsRequestToken: 0" in html assert "function openImportModal()" in html assert "function closeImportModal()" in html assert "function updateImportActionState()" in html + assert "function normalizeSelectedCollectionKey()" in html assert 'document.body.classList.toggle("modal-open"' in html