Add diagnostic drilldowns
This commit is contained in:
@@ -26,6 +26,10 @@ def test_web_analysis_uses_production_health_pipeline(tmp_path):
|
||||
assert result["database_missing_paths"] == 0
|
||||
assert result["database_missing_unique_filenames"] == 0
|
||||
assert result["tracks_missing_from_database"] == 0
|
||||
assert result["details"]["old_crate_references"]["total"] == 2
|
||||
assert result["details"]["old_crate_references"]["items"][0]["crate"]
|
||||
assert result["details"]["suggested_matches"]["total"] == 0
|
||||
assert result["details"]["unused_tracks"]["total"] == 1
|
||||
|
||||
|
||||
def test_web_analysis_rejects_missing_folders(tmp_path):
|
||||
@@ -41,4 +45,7 @@ def test_web_static_assets_are_declared_and_packaged():
|
||||
html = (asset_root / "index.html").read_text(encoding="utf-8")
|
||||
assert "Missing tracks in Serato" in html
|
||||
assert "Old crate references" in html
|
||||
assert "Choose a diagnostic" in html
|
||||
assert 'data-detail="database_missing_tracks"' in html
|
||||
assert 'data-detail="old_crate_references"' in html
|
||||
assert html.count('class="info-button"') >= 10
|
||||
|
||||
Reference in New Issue
Block a user