aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-06-23 10:49:52 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-06-23 10:49:52 +0200
commit9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc (patch)
tree58613f5d773cac3b4b22f6a8e88c0cf3c7fb5ac0 /tests
parentab6fd30d0dddc32d34c58ab63d35db2a755d19e9 (diff)
parent3002c1b22af3b4ca139b98fe069a84cb8cb3b8de (diff)
downloadforums-9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc.tar
forums-9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc.tar.gz
forums-9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc.tar.bz2
forums-9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc.tar.xz
forums-9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc.zip
Merge pull request #5623 from marc1706/ticket/16078
[ticket/16078] Use headless chrome and disable gpu acceleration
Diffstat (limited to 'tests')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php3
1 files changed, 3 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..4d88d7d9cb 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -11,6 +11,7 @@
*
*/
+use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\Exception\WebDriverCurlException;
use Facebook\WebDriver\Remote\RemoteWebDriver;
@@ -80,6 +81,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,