Make UI SABnzbd-style #30
This commit is contained in:
+18
-1
@@ -46,6 +46,21 @@ def test_index_renders_queue_controls(tmp_path, monkeypatch):
|
||||
assert "cancel-current" in response.text
|
||||
|
||||
|
||||
def test_index_packs_secondary_controls_into_menu(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("IMPORTARR_STATE_PATH", str(tmp_path / "state.db"))
|
||||
import importarr.main as main
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
response = TestClient(main.app).get("/")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert 'class="menu"' in response.text
|
||||
assert "Service info and build details" in response.text
|
||||
assert "Queue and history" in response.text
|
||||
assert "Current import" in response.text
|
||||
|
||||
|
||||
def test_index_renders_settings_dialog(tmp_path, monkeypatch):
|
||||
monkeypatch.setenv("IMPORTARR_STATE_PATH", str(tmp_path / "state.db"))
|
||||
import importarr.main as main
|
||||
@@ -93,8 +108,10 @@ def test_stylesheet_includes_mobile_responsive_rules():
|
||||
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:48%}" in css
|
||||
assert ".jobs-table th:nth-child(1){width:52%}" in css
|
||||
assert ".jobs-table .row-actions button{width:100%}" in css
|
||||
assert ".summary-strip" in css
|
||||
assert ".menu-panel" in css
|
||||
|
||||
|
||||
def test_settings_endpoint_persists_arr_connection_values(tmp_path, monkeypatch):
|
||||
|
||||
Reference in New Issue
Block a user