I want to conduct an end-to-end test focusing on audio autoplay. Is there a way to configure Puppeteer so that autoplay is enabled automatically? Although the sound is not actually played, the HTMLAudioElement behaves as if it is playing when manually triggered. I need a similar automated process for enabling autoplay during testing.
hey u, try passing --autoplay-policy=no-user-gesture-required to your puppeteer args. it worked fine for me during test runs. good lck!