Hi,
I recently started to run my browser tests with Laravel Dusk on a Windows 10 console but the tests are kind of slower than other consoles.
This wouldn't really be a problem if the following exception wasn't being thrown during the process :
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "php artisan dusk tests/Browser" exceeded the timeout of 300 seconds.
I have no idea if it's possible/how to change this timeout.
Here is my DuskTestCase if it can help :
<?php
namespace Tests;
use Laravel\Dusk\TestCase as BaseTestCase;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\DesiredCapabilities;
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
/**
* Prepare for Dusk test execution.
*
* @beforeClass
* @return void
*/
public static function prepare()
{
static::startChromeDriver();
}
/**
* Create the RemoteWebDriver instance.
*
* @return \Facebook\WebDriver\Remote\RemoteWebDriver
*/
protected function driver()
{
$options = (new ChromeOptions)->addArguments([
'--disable-gpu',
'--headless',
'--window-size=1920,1080',
'--log-level=3'
]);
$options->setExperimentalOption('excludeSwitches', ['enable-logging']); // Hide some logs for Windows
return RemoteWebDriver::create(
'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
)
);
}
}
Thanks in advance