Performing Twilight Tests on Homestead for Windows

I use homestead on windows 10 and install laravel 5.4, when I try to run the twilight tests, I get the following error:

1) Tests\Feature\ViewProductListingTest::user_can_view_product_listing
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}

Failed to connect to localhost port 9515: Connection refused

Did anyone manage to get around this?

Thanx.

+4
source share
3 answers

Today I ran into this problem. I spent 2 hours of research and finally resolved it by following the steps outlined in this comment .

I performed the original basic test and it passed. I will try to run a more complex test, and hopefully the solution will still work.

, Homestead (Chrome, xvfb ..) Laravel Dusk. , .

, !

+1

.

, /vendor/laravel/dusk/bin Homestead. chmod 777 .

, - , google-chrome Homestead.

, google chrome, , , , .

0

( macOS Sierra). , Dusk Hostest VM, -. , DB_HOST .ENV , .

So, for example, if you configured the Homestead site to access mycoolsite.app, use it as the DB_HOST value.

I know this is more of a workaround for situations where your host machine can start it in order, but it works for me at the moment if you can try.

0
source

Source: https://habr.com/ru/post/1668200/


All Articles