title: Laravel dusk vagrant box DesiredCapabilities::__construct()
body: <p>Dusk issue
  running Vagrant box with custom url on my mac. I had to edit <code>DuskTestCase.php</code> and replace <code>http://localhost:9515</code> with <code>$this-&gt;local</code> = <code>http://mysite.dev</code>.
  <code>$php artisan dusk tests/Browser/LoginTest.php</code> outputs following error:</p>
  
  <pre><code>Tests\Browser\LoginTest::testLogin
  TypeError: Argument 1 passed to Facebook\WebDriver\Remote\DesiredCapabilities::__construct() must be of the type array, null given, called in /Users/gmylonas/Vagrant Projects/mywebsite/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php on line 127
  
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/facebook/webdriver/lib/Remote/DesiredCapabilities.php:33
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:127
  /Users/gmylonas/Vagrant Projects/mywebsite/tests/DuskTestCase.php:46
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/laravel/dusk/src/TestCase.php:210
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/laravel/framework/src/Illuminate/Support/helpers.php:762
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/laravel/dusk/src/TestCase.php:211
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/laravel/dusk/src/TestCase.php:117
  /Users/gmylonas/Vagrant Projects/mywebsite/vendor/laravel/dusk/src/TestCase.php:89
  /Users/gmylonas/Vagrant Projects/mywebsite/tests/Browser/LoginTest.php:23
  </code></pre>
  
  <p>When I replace <code>$this-&gt;local</code> = <code>http://www.google.com:80</code> and <code>$browser-&gt;visit('/')-&gt;dump();</code> it dumps the content of google page!
  <code>$this-&gt;local</code> = <code>http://localhost:9515</code> will dump empty page</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>:question: Why it won’t work on my box url and how to solve it?</p>
  
  <p>Thanks is advance.</p>