Add HTML5 operations monitor
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-16 21:53:56 +03:00
parent c3193b8211
commit 84303f208b
3 changed files with 122 additions and 0 deletions
+29
View File
@@ -287,6 +287,35 @@ def test_html5_project_setup_renders_server_fragments():
assert "<html" not in summary.text
def test_html5_operations_renders_job_monitor_fragments():
client = TestClient(app)
project_id = f"html5-ops-{uuid4()}"
saved = client.post(
f"/projects/{project_id}/settings",
json={"name": "HTML5 Ops", "structure_source": "XML_DUMP"},
)
assert saved.status_code == 200
job = client.post(f"/html5/projects/{project_id}/setup/import-job")
assert job.status_code == 200
page = client.get("/html5/operations")
assert page.status_code == 200
assert "text/html" in page.headers["content-type"]
assert 'data-html5-page="operations"' in page.text
assert "data-html5-operations-body" in page.text
assert 'hx-get="/html5/operations/jobs"' in page.text
assert project_id in page.text
assert "__next" not in page.text
rows = client.get("/html5/operations/jobs")
assert rows.status_code == 200
assert "text/html" in rows.headers["content-type"]
assert "data-html5-operation" in rows.text
assert project_id in rows.text
assert "<html" not in rows.text
def test_project_setup_mock_import_indexes_project():
client = TestClient(app)
project_id = f"setup-import-{uuid4()}"