Skip to content

PHPUnit Exception: InvalidCookieDomain, invalid cookie domain #70

@gitressa

Description

@gitressa

To recreate spin up a Drupal 10 instance, download the project_browser module and run the test:

$ cd web
$ composer require drupal/project_browser:1.0.x-dev@dev
$ lando phpunit --group project_browser
PHPUnit 9.5.20 #StandWithUkraine

Warning:       Your XML configuration validates against a deprecated schema.
Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

Testing 
.EEEEEEEEEEEEEEEE                                                 17 / 17 (100%)

Time: 03:40.217, Memory: 341.00 MB

There were 16 errors:

1) Drupal\Tests\project_browser\FunctionalJavascript\ProjectBrowserPluginTest::testRandomDataPlugin
WebDriver\Exception\InvalidCookieDomain: invalid cookie domain
  (Session info: headless chrome=98.0.4758.102)
  (Driver info: chromedriver=98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}),platform=Linux 5.15.0-41-generic x86_64)

/app/web/vendor/instaclick/php-webdriver/lib/WebDriver/Exception.php:156
/app/web/vendor/instaclick/php-webdriver/lib/WebDriver/AbstractWebDriver.php:172
/app/web/vendor/instaclick/php-webdriver/lib/WebDriver/Session.php:187
/app/web/core/tests/Drupal/FunctionalJavascriptTests/DrupalSelenium2Driver.php:44
/app/web/vendor/behat/mink/src/Session.php:214
/app/web/core/tests/Drupal/Tests/UiHelperTrait.php:344
/app/web/core/tests/Drupal/Tests/UiHelperTrait.php:232
/app/web/core/tests/Drupal/Tests/UiHelperTrait.php:156
/app/web/modules/contrib/project_browser/tests/src/FunctionalJavascript/ProjectBrowserPluginTest.php:33
/app/web/vendor/phpunit/phpunit/src/Framework/TestResult.php:726
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions