mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-17 23:21:33 +02:00
[ticket/16078] Use headless chrome and disable gpu acceleration
This is to hopefully get rid of some of the issues with timeouts. PHPBB3-16078
This commit is contained in:
@@ -80,6 +80,8 @@ class phpbb_ui_test_case extends phpbb_test_case
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$capabilities = DesiredCapabilities::chrome();
|
$capabilities = DesiredCapabilities::chrome();
|
||||||
|
$chromeOptions = (new ChromeOptions)->addArguments(['headless', 'disable-gpu']);
|
||||||
|
$capabilities->setCapability(ChromeOptions::CAPABILITY, $chromeOptions);
|
||||||
self::$webDriver = RemoteWebDriver::create(
|
self::$webDriver = RemoteWebDriver::create(
|
||||||
self::$host . ':' . self::$port,
|
self::$host . ':' . self::$port,
|
||||||
$capabilities,
|
$capabilities,
|
||||||
|
Reference in New Issue
Block a user