cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.69k stars 3.16k forks source link

Add audio to video recordings #17876

Open mrchantey opened 3 years ago

mrchantey commented 3 years ago

What would you like?

Option to record the audio output when running tests.

Why is this needed?

Our app makes extensive use of the Web Audio API and, just as video recordings are helpful for UI testing, audio recordings would enhance our workflow dramatically.

Other

Apologies if I've missed something and this is already an open or resolved issue.

juanfonsecasolis commented 2 years ago

Yes, I am needing this on my project. Please consider adding audio to the videos.

acraileanu commented 1 year ago

Is this being considered?

nagash77 commented 1 year ago

@acraileanu this is not planned for development. Any additional use cases and examples about why this would be valuable would be appreciated in case maybe there is a use case we are not considering.

acraileanu commented 1 year ago

@nagash77: this is useful for testing an application or a game that provides a rich experience that relies on sounds. An example is testing that sounds are played at a specific time (when an event occurs) and/or that they stop at a specific point in time / after an elapsed period. This gets a bit weirder when you add out-of-focus to the window (unexpected behaviors usually), so it is something you may want to look into. While it is good that you can programmatically test what happens, it is hard to review a failing test's video to understand what was going on - has the sound started playing / is it still playing / was it stopped?