Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

littpi's avatar

Laravel Dusk with GitLab CI/CD

Does anyone use GitLab CI/CD? I am trying to learn to use Dusk and it is working fine within my local environment (Windows 10 Home). After that I edited my .gitlab-ci.yml to use edbizarro/gitlab-ci-pipeline-php for running the code and the machine is my Ubuntu 16.04 VM. However I have encountered a problem.

$ php artisan dusk
Laravel development server started: <http://127.0.0.1:8000>Warning: TTY mode requires /dev/tty to be read/writable.

PHPUnit 7.1.5 by Sebastian Bergmann and contributors.

EEEEEEEEEEEEEEEEEEEEEEEEEEEE                                      28 / 28 (100%)

Time: 8.04 seconds, Memory: 16.00MB

There were 28 errors:

1) Tests\Browser\AdminPanel\AuthorityTest::testGuestLogin
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless","--no-sandbox"]}}}

Failed to connect to localhost port 9515: Connection refused

All the errors show the message with CURL error. I don't know how to solve this problem.

0 likes
1 reply

Please or to participate in this conversation.