Show self-update availability in UI #25

This commit is contained in:
2026-07-29 21:21:05 +02:00
parent 006db01930
commit 7be54f9f3c
3 changed files with 312 additions and 21 deletions
+22 -16
View File
@@ -69,6 +69,10 @@ def test_index_packs_secondary_controls_into_menu(tmp_path, monkeypatch):
assert "e.target===e.currentTarget" in response.text
assert "function readiness" in response.text
assert 'title="${esc(j.reason||j.state)}"' in response.text
assert "update-banner" in response.text
assert "checkForUpdates()" in response.text
assert "/api/control/update-check" in response.text
assert "update-now" in response.text
def test_stylesheet_includes_theme_and_progress_rules():
@@ -79,7 +83,9 @@ def test_stylesheet_includes_theme_and_progress_rules():
assert 'html[data-theme="light"]' in css
assert 'html[data-theme="dark"]' in css
assert ".current-panel progress" in css
assert ".top-controls>button,.menu summary" in css
assert ".top-controls>button" in css
assert ".update-banner" in css
assert "#ff9f0a" in css
def test_index_renders_settings_dialog(tmp_path, monkeypatch):
@@ -122,23 +128,23 @@ def test_stylesheet_includes_mobile_responsive_rules():
assert "@media (max-width:640px)" in css
assert ".table-scroll" in css
assert "overflow-x:auto" in css
assert "flex-direction:column" in css
assert ".jobs-table{display:none}" in css
assert ".job-cards{display:block}" in css
assert "word-break:break-word" in css
assert "max-width:1280px" in css
assert ".jobs-table table{table-layout:fixed;min-width:0}" in css
assert ".jobs-table th:nth-child(1){width:66%}" in css
assert ".row-actions button{width:1.85rem" in css
assert "overflow: hidden" in css
assert "flex-direction: column" in css
assert ".jobs-table { display: none" in css
assert ".job-cards { display: block" in css
assert "word-break: break-word" in css
assert "max-width: 1280px" in css
assert "table-layout: fixed" in css
assert ".jobs-table th:nth-child(1) { width: 66%" in css
assert ".row-actions button { width: 1.85rem" in css
assert ".summary-strip" in css
assert ".menu-panel" in css
assert "@media (prefers-color-scheme:dark)" in css
assert "--primary:#4b42b8" in css
assert "--cyan:#50dce5" in css
assert "--bg:#fff" in css
assert "--bg:#2f3d55" in css
assert "--danger:#a56af0" in css
assert "@media (prefers-color-scheme: dark)" in css
assert "--primary: #4b42b8" in css
assert "--cyan: #50dce5" in css
assert "--bg: #fff" in css
assert "--bg: #2f3d55" in css
assert "--danger: #a56af0" in css
def test_settings_endpoint_persists_arr_connection_values(tmp_path, monkeypatch):