Skip to content
Snippets Groups Projects
Commit a55f9ae9 authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

tests: set --autoplay-policy=no-user-gesture-required

parent 054d3b1a
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,10 @@ class SeleniumHelper { ...@@ -57,6 +57,10 @@ class SeleniumHelper {
// Stub getUserMedia to always not allow access // Stub getUserMedia to always not allow access
args.push('--use-fake-ui-for-media-stream=deny'); 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.set('chromeOptions', {args});
chromeCapabilities.setLoggingPrefs({ chromeCapabilities.setLoggingPrefs({
performance: 'ALL' performance: 'ALL'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment