I'm trying to alter some config values before each test. However, the browser does not apply them.
In my DuskTestCase file:
abstract class DuskTestCase extends BaseTestCase
{
use CreatesApplication;
protected function setUp()
{
parent::setUp();
config()->set('cookie-consent.enabled', false);
config()->set('app.recaptcha', false);
config()->set('localization.acceptLanguage', false);
}
/**
* Prepare for Dusk test execution.
*
* @beforeClass
* @return void
*/
public static function prepare()
{
static::startChromeDriver();
}
...
The config values are correctly set in each test, but not for the browser. When I remove the '--disable-gpu'
I clearly see that the browser is still using the old config values.
How can this be changed as well?