UI - Move rendering of each watchlist row out of the watchlist main template so it can be re-used by the realtime update

This commit is contained in:
dgtlmoon
2026-08-16 15:09:01 +02:00
parent 21f19b239a
commit 55ca6691af
5 changed files with 229 additions and 174 deletions
@@ -8,7 +8,11 @@ from changedetectionio.tests.util import wait_for_all_checks
def test_check_plugin_processor(client, live_server, measure_memory_usage, datastore_path):
# requires os-int intelligence plugin installed (first basic one we test with)
res = client.get(url_for("add_watch_ui.add_watch_ui_index"))
# Check the plugin processor shows up in the general "add watch" form on the watch-list overview
# (the unfiltered processor list). NOTE: not /add-watch-ui - that page is the visual/browser flow
# and only offers processors with supports_visual_selector; OSINT is a non-visual network-recon
# processor, so it correctly does NOT appear there.
res = client.get(url_for("watchlist.index"))
assert b'OSINT Reconnaissance' in res.data, "Must have the OSINT plugin installed at test time"
assert b'<input checked id="processor-0" name="processor" type="radio" value="text_json_diff">' in res.data, "But the first text_json_diff processor should always be selected by default in quick watch form"