Skip to content

Commit a55f9ae

Browse files
author
Christopher Willis-Ford
committed
tests: set --autoplay-policy=no-user-gesture-required
1 parent 054d3b1 commit a55f9ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/helpers/selenium-helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class SeleniumHelper {
5757
// Stub getUserMedia to always not allow access
5858
args.push('--use-fake-ui-for-media-stream=deny');
5959

60+
// Suppress complaints about AudioContext starting before a user gesture
61+
// This is especially important on Windows, where Selenium directs JS console messages to stdout
62+
args.push('--autoplay-policy=no-user-gesture-required');
63+
6064
chromeCapabilities.set('chromeOptions', {args});
6165
chromeCapabilities.setLoggingPrefs({
6266
performance: 'ALL'

0 commit comments

Comments
 (0)