app/test fix

This commit is contained in:
dgtlmoon
2026-05-28 15:30:27 +02:00
parent 86f838a9b5
commit cf6e88eb89
6 changed files with 11 additions and 7 deletions
@@ -10,7 +10,7 @@ def construct_blueprint(datastore: ChangeDetectionStore):
@add_watch_ui_blueprint.route("/", methods=['GET'])
@login_optionally_required
def index():
def add_watch_ui_index():
from changedetectionio.llm.evaluator import get_llm_config as _get_llm_config
from changedetectionio.llm.ui_strings import LLM_INTENT_WATCH_PLACEHOLDER
@@ -141,7 +141,6 @@ window.watchOverviewI18n = {
<div id="stats_row">
<div class="left">{%- if watches|length >= pagination.per_page -%}{{ pagination.info }}{%- endif -%}</div>
<div class="right" >{{ _('Queued size') }}: <span id="queue-size-int">{{ queue_size }}</span></div>
</div>
@@ -60,7 +60,7 @@ $action-sidebar-content-slot: 1100px;
.action-sidebar-list {
list-style: none;
padding: 0;
padding: 0 20px; // 20 = (64-24)/2 → icon stays centered in collapsed rail
margin: 0;
display: flex;
flex-direction: column;
@@ -89,7 +89,6 @@ $action-sidebar-content-slot: 1100px;
width: 100%;
height: 42px;
font-size: var(--body-main-text-size);
padding: 0 20px; // 20 = (64-24)/2 → icon stays centered in collapsed rail
border-radius: 8px;
color: var(--color-white);
text-decoration: none;
File diff suppressed because one or more lines are too long
+7 -1
View File
@@ -4,7 +4,7 @@
{%- set ep = request.endpoint or '' -%}
<ul class="action-sidebar-list">
<li class="action-sidebar-li">
<a href="{{ url_for('add_watch_ui.index') }}"
<a href="{{ url_for('add_watch_ui.add_watch_ui_index') }}"
class="action-sidebar-item action-sidebar-item--accent {% if ep.startswith('add_watch_ui.') %}active{% endif %}"
title="{{ _('Add a page watch') }}">
<svg class="action-icon" viewBox="0 0 24 24" aria-hidden="true">
@@ -120,7 +120,13 @@
</a>
</li>
<li class="action-sidebar-divider" aria-hidden="true"></li>
<li>
<div class="action-sidebar-li" id="queue-stats-sidebar">
{{ _('Queued size') }}: <span id="queue-size-int">{{ queue_size }}</span>
</div>
</li>
<li class="action-sidebar-li">
{% if hosted_sticky %}
<div id="hosted-sticky">
@@ -8,7 +8,7 @@ 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("watchlist.index"))
res = client.get(url_for("add_watch_ui.add_watch_ui_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"