From e16216fc2d2978b9480e5189dc3dcb9f23229d2d Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Tue, 9 Jun 2026 23:17:19 -0700 Subject: [PATCH] Tests: register watchlist-history.js in script-split integrity (#831 follow-up) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #831 watchlist work added the standalone webui/static/watchlist-history.js (loaded in index.html) but didn't add it to NON_SPLIT_JS, so the onclick- coverage test couldn't see its functions and failed on openWatchlistHistoryModal referenced in the History button. Register it alongside its sibling origin-history.js — same fix the registry comment was added for. --- tests/test_script_split_integrity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_script_split_integrity.py b/tests/test_script_split_integrity.py index 4390f98a..c299d14f 100644 --- a/tests/test_script_split_integrity.py +++ b/tests/test_script_split_integrity.py @@ -52,7 +52,8 @@ SPLIT_MODULES = [ # Other JS files that exist in static/ but are NOT part of the split NON_SPLIT_JS = {"setup-wizard.js", "docs.js", "helper.js", "particles.js", "worker-orbs.js", - "enrichment-manager.js", "origin-history.js", "blocklist.js"} + "enrichment-manager.js", "origin-history.js", "blocklist.js", + "watchlist-history.js"} # Pre-existing duplicate helper functions that lived in the original monolith. # In a plain