This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Random Audio waveforms make testing them indeterminate #1494
Labels
💻 aspect: code
Concerns the software code in the repository
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟨 priority: medium
Not blocking but should be addressed soon
Milestone
Problem
Currently, if the API does not return
peaks
for audio, we create an array of random values for the waveform. This makes it impossible to have visual regression tests for the audio detail page because the waveforms will always be different.Description
We can use
prng
with a seed of audio id to make sure that each audio will always have the same waveform.Implementation
The text was updated successfully, but these errors were encountered: