summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Warnon <awa@odoo.com>2019-08-23 08:41:12 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-28 13:27:58 +0000
commit5862f1d91f96f60225433a29b460f96f6c6a73c8 (patch)
treec447c57ee9dd09bffbc1fa6139e795c15a856759
parent5252f9e8cd5405e877e0dd8e7efd4df829ab9423 (diff)
[IMP] tests: allow auto play in chrome headless
PURPOSE Test frontend and UI tools of eLearning. SPECIFICATIONS Purpose: allow video auto play without any required user action. It allows to have test tours using youtube autoplay feature like future website slides tours (spoil, spoil). LINKS Task ID 1937768
-rw-r--r--odoo/tests/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py
index 3f2b901526c..171c700b160 100644
--- a/odoo/tests/common.py
+++ b/odoo/tests/common.py
@@ -591,6 +591,8 @@ class ChromeBrowser():
'--disable-namespace-sandbox': '',
'--user-data-dir': self.user_data_dir,
'--disable-translate': '',
+ # required for tours that use Youtube autoplay conditions (namely website_slides' "course_tour")
+ '--autoplay-policy': 'no-user-gesture-required',
'--window-size': self.window_size,
'--remote-debugging-address': HOST,
'--remote-debugging-port': str(self.devtools_port),