Feature request: High-level way to assert whether the browser is playing an audio file
See original GitHub issueCurrent behavior:
No high-level ability to test whether the browser is playing an audio file.
Desired behavior:
If possible, it’d be great to have a high-level way to check whether a specific audio file is currently being played by the browser, whether by an <audio>
tag, the web audio API, or some other method that I don’t know about.
This could be something like cy.audio('https://example.com/path/to/music/file.mp3').should('be.playing')
.
My app uses howler JS to play audio files, and all I’ve been able to come up with in terms of testing the music is to use cy.window()
to access the Howler
global. This works okay, but it’d be great if there was a better way to do this that wasn’t so tied to the specific tool I’m using.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:15 (5 by maintainers)
Top Results From Across the Web
HighLevel Support Portal: Solutions
Why are my email links changing and how to fix links in the email that do not open? Mailgun error: too many requests....
Read more >Setting up your own test automation environment
To show how to set up a Selenium testing environment locally and run tests with it, and how to integrate it with tools...
Read more >Try out our new features page - Chrome Platform Status
This feature enables a standard way for a page which embeds content in frames to request performance timeline entries from those frames, and...
Read more >MediaPlayer - Android Developers
onError() method if an OnErrorListener has been registered beforehand via ... standard or file spec, but the media framework does not support the...
Read more >Understanding Conformance | Understanding WCAG 2.0 - W3C
Usability testing aims to determine how well people can use the content for ... from being classified as conforming if the checkout or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nwshane you can use this if you want to ensure audio is playing for the client…if you we’re using
audio
orvideo
elements.@jennifer-shehane Could we reopen this? Seems like a valid feature request that is still not implemented