feat: read-only waveform strip + manual refresh in the Audio tab

This commit is contained in:
2026-07-02 14:53:32 +02:00
parent 4c5c4276c1
commit 12eaa944a7
2 changed files with 72 additions and 3 deletions
+14
View File
@@ -372,3 +372,17 @@ def test_extract_no_edits_passes_no_filters(win, monkeypatch, tmp_path):
with pytest.raises(_Stop):
win._on_extract_audio()
assert seen["filters"] is None
def test_waveform_strip_present_and_safe(win):
from PyQt6.QtWidgets import QPushButton
assert win._wave is not None
assert isinstance(win._btn_wave_refresh, QPushButton)
# set_peaks stores + doesn't crash
win._wave.set_peaks([0.1, 0.5, 0.9])
assert list(win._wave._peaks) == [0.1, 0.5, 0.9]
win._wave.clear()
assert win._wave._peaks == []
# refresh with no file loaded is a safe no-op
win._file_path = ""
win._on_wave_refresh()