[FIX] tests: remove chrome sandboxing

It appears that chrome headless with sandboxing is failing when running
containerized because it tries to use Linux namespaces.

With this commit, the no-sanbox optional arg is used to avoid this
issue.

Closes #26456
Closes #28053
This commit is contained in:
Christophe Monniez
2018-10-26 11:26:18 +02:00
parent e6228402e7
commit 07b855fccf
+2 -1
View File
@@ -423,7 +423,8 @@ class ChromeBrowser():
'--user-data-dir': self.user_data_dir,
'--disable-translate': '',
'--window-size': '1366x768',
'--remote-debugging-port': str(self.devtools_port)
'--remote-debugging-port': str(self.devtools_port),
'--no-sandbox': '',
}
cmd = [self.executable]
cmd += ['%s=%s' % (k, v) if v else k for k, v in switches.items()]