I have 3 Vuejs SPAs which use the same Laravel API setup using Sail/Selenium/Docker. I want to test each SPA from the API using Dusk but whenever I try to visit localhost with the port (http://localhost:9007
) I get the following error:
Facebook\WebDriver\Exception\UnknownErrorException: unknown error: net::ERR_CONNECTION_REFUSED
I don't get the error with http://google.com
or just using relative paths like /
or /login
.
Here is the code I am using to test:
$browser->visit('http://127.0.0.1:9007');