aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-06-19 07:32:52 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-06-19 07:32:52 +0200
commit1be392a16a8ff5923e28bac080f7c21659f52be5 (patch)
treea8fae5774e18eac6e94becc8601105187e58cd29 /tests/test_framework
parentab6fd30d0dddc32d34c58ab63d35db2a755d19e9 (diff)
downloadforums-1be392a16a8ff5923e28bac080f7c21659f52be5.tar
forums-1be392a16a8ff5923e28bac080f7c21659f52be5.tar.gz
forums-1be392a16a8ff5923e28bac080f7c21659f52be5.tar.bz2
forums-1be392a16a8ff5923e28bac080f7c21659f52be5.tar.xz
forums-1be392a16a8ff5923e28bac080f7c21659f52be5.zip
[ticket/16078] Use headless chrome and disable gpu acceleration
This is to hopefully get rid of some of the issues with timeouts. PHPBB3-16078
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index e76c8cd159..a17fd608c1 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -80,6 +80,8 @@ class phpbb_ui_test_case extends phpbb_test_case
try {
$capabilities = DesiredCapabilities::chrome();
+ $chromeOptions = (new ChromeOptions)->addArguments(['headless', 'disable-gpu']);
+ $capabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
self::$webDriver = RemoteWebDriver::create(
self::$host . ':' . self::$port,
$capabilities,