mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #5623 from marc1706/ticket/16078
[ticket/16078] Use headless chrome and disable gpu acceleration
This commit is contained in:
commit
9e9bdb69b5
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue