Skip to content

Commit 19c9db0

Browse files
authored
Merge pull request scratchfoundation#5272 from cwillisf/chromedriver-autoplay-policy
tests: set --autoplay-policy=no-user-gesture-required
2 parents 2b642e9 + a55f9ae commit 19c9db0

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)