From a55f9ae9edb11762a84e2e341ee7999a59cab511 Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <cwillisf@media.mit.edu> Date: Wed, 30 Oct 2019 10:39:04 -0700 Subject: [PATCH] tests: set --autoplay-policy=no-user-gesture-required --- test/helpers/selenium-helper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/helpers/selenium-helper.js b/test/helpers/selenium-helper.js index 1072cb0d6..84e6c355a 100644 --- a/test/helpers/selenium-helper.js +++ b/test/helpers/selenium-helper.js @@ -57,6 +57,10 @@ class SeleniumHelper { // Stub getUserMedia to always not allow access args.push('--use-fake-ui-for-media-stream=deny'); + // Suppress complaints about AudioContext starting before a user gesture + // This is especially important on Windows, where Selenium directs JS console messages to stdout + args.push('--autoplay-policy=no-user-gesture-required'); + chromeCapabilities.set('chromeOptions', {args}); chromeCapabilities.setLoggingPrefs({ performance: 'ALL' -- GitLab