Skip to content

Commit

Permalink
fix: DuskTestCase driver function fails to read the DUSK_DRIVER_URL e…
Browse files Browse the repository at this point in the history
…nvironment variable (#1108)

* fix: DuskTestCase driver function fails to read the driver environment variable

* Update DuskTestCase.stub

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
robinstraub and taylorotwell authored Jul 23, 2024
1 parent 4dca70d commit 5c72910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/DuskTestCase.stub
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class DuskTestCase extends BaseTestCase
})->all());

return RemoteWebDriver::create(
$_ENV['DUSK_DRIVER_URL'] ?? 'http://localhost:9515',
$_ENV['DUSK_DRIVER_URL'] ?? env('DUSK_DRIVER_URL') ?? 'http://localhost:9515',
DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY, $options
)
Expand Down

0 comments on commit 5c72910

Please sign in to comment.