Unfortunately config([\'key\' => \'newValue\']) doesn\'t work in a Dusk setup (for overriding a config value), presumably because it would change the config
You can also use a seperate env for all the dusk tests.
It is also mentioned in the laravel docs here https://laravel.com/docs/8.x/dusk#environment-handling