- ivnish Kazakhstan
Thanks #2
I use docksal, not lando, but your config helps me too
- Status changed to Fixed
7 months ago 5:55pm 25 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.
I’m trying to setup a chromedriver on my local using lando so far I got
chrome:
type: compose
app_mount: false
services:
image: drupalci/webdriver-chromedriver:production
command: chromedriver --no-sandbox --log-path=/tmp/chromedriver.log --allowed-origins=* --verbose --whitelisted-ips=
my MINK_DRIVER_ARGS_WEBDRIVER setting is ‘[“chrome”, {“browserName”:“chrome”,“chromeOptions”:{“args”:[“--disable-gpu”,“--headless”]}}, “http://chrome:9515”]’
and I’m calling the test as
phpunit:
service: appserver
user: www-data
cmd:
- appserver: php /app/web/vendor/bin/phpunit -v -c /app/phpunit.xml
But I keep getting
1) Drupal\Tests\layout_builder\FunctionalJavascript\BlockFilterTest::testBlockFilter
The test wasn’t able to connect to your webdriver instance. For more information read core/tests/README.md.
The original message while starting Mink: Could not open connection: unknown error: Chrome failed to start: crashed.
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}),platform=Linux 5.10.104-linuxkit x86_64)
/app/web/core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php:55
/app/web/core/tests/Drupal/Tests/BrowserTestBase.php:381
/app/web/core/modules/layout_builder/tests/src/FunctionalJavascript/BlockFilterTest.php:35
/app/web/vendor/phpunit/phpunit/src/Framework/TestResult.php:726
all other test types work.
Any help would be greatly appreciated as I can't test any Functional Javascript tests
Fixed
Host Environment
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thanks #2
I use docksal, not lando, but your config helps me too
Automatically closed - issue fixed for 2 weeks with no activity.