Show detailed batch repair preview

This commit is contained in:
Philip Guzman
2026-07-01 16:26:04 -07:00
parent f3cfed316d
commit ec646479d2
6 changed files with 201 additions and 2 deletions
+5
View File
@@ -60,6 +60,8 @@ def test_web_static_assets_are_declared_and_packaged():
assert "Old crate references" in html
assert "Choose a diagnostic" in html
assert "Backup recovery" in html
assert "Heres exactly what will happen" in html
assert 'id="batch-preview-modal"' 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
@@ -139,4 +141,7 @@ def test_batch_preview_combines_approved_groups_without_changes(tmp_path):
assert result["applied"] is False
assert result["choice_count"] == 2
assert len(result["replaced"]) == 2
assert len(result["decisions"]) == 2
assert result["decisions"][0]["keeper"].endswith("First.mp3")
assert len(result["decisions"][0]["replaced"]) == 1
assert all(not Path(choice["group_files"][1]).is_symlink() for choice in choices)