Do you have your APP_URL=http:// in your .env file pointing to the correct URL?
Jan 24, 2017
10
Level 4
Dusk doesn't work. App updated to Laravel 5.4
Hello,
yestarday I have updated my application from 5.3 to 5.4 laravel. I don't know if it is imporant, but I use laradock Docker for this app with running: nginx, php, mysql, beanstalkd, beanstalkd-console, redis, workspace. What I have done:
- copied tests directory from fresh laravel 5.4 application
-
composer require laravel/dusk -
add DuskServiceProviderinconfig/app.php - run
php artisan dusk:install - run
php artisan duskand got:
PHPUnit 5.7.6 by Sebastian Bergmann and contributors.
E 1 / 1 (100%)
Time: 2.5 minutes, Memory: 10.00MB
There was 1 error:
1) Tests\Browser\ExampleTest::testBasicExample
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}
Operation timed out after 30000 milliseconds with 0 bytes received
/home/st/Code/myapp/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:287
/home/st/Code/myapp/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:121
/home/st/Code/myapp/tests/DuskTestCase.php:32
/home/st/Code/myapp/vendor/laravel/dusk/src/TestCase.php:180
/home/st/Code/myapp/vendor/laravel/framework/src/Illuminate/Support/helpers.php:639
/home/st/Code/myapp/vendor/laravel/dusk/src/TestCase.php:181
/home/st/Code/myapp/vendor/laravel/dusk/src/TestCase.php:111
/home/st/Code/myapp/vendor/laravel/dusk/src/TestCase.php:85
/home/st/Code/myapp/tests/Browser/ExampleTest.php:21
What's going on? How can I run propely tests?
Please or to participate in this conversation.