drevops / behat-screenshot

🧪 Behat extension and step definitions to create HTML and image screenshots on demand or when tests fail
GNU General Public License v3.0
22 stars 7 forks source link

Compatibility with Drupal 9 #38

Closed xurizaemon closed 3 years ago

xurizaemon commented 3 years ago
www-data@396ff6d5e641:/app$ composer require -W integratedexperts/behat-screenshot
Using version ^0.7.3 for integratedexperts/behat-screenshot
./composer.json has been updated
Running composer update integratedexperts/behat-screenshot --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/core-recommended is locked to version 9.1.8 and an update of this package was not requested.
    - drupal/core-recommended 9.1.8 requires symfony/http-client-contracts v2.3.1 -> found symfony/http-client-contracts[v2.3.1] but it conflicts with another require.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Think it's this one:

www-data@396ff6d5e641:/app$ composer show symfony/finder
name     : symfony/finder
descrip. : Finds files and directories via an intuitive fluent interface
keywords : 
versions : * v5.2.4

composer.json:

{
    "name": "catalyst-it/ci-basic",
    "type": "project",
    "description": "Drupal project for ci-basic, based on drupal/recommended-project",
    "homepage": "https://www.drupal.org/project/drupal",
    "license": "GPL-2.0-or-later",
    "require": {
        "catalyst-it/example-package": "^0.0.3",
        "composer/installers": "^1.9",
        "drupal/core-composer-scaffold": "^9.1",
        "drupal/core-project-message": "^9.1",
        "drupal/core-recommended": "^9.1",
        "drush/drush": "^10.5"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "require-dev": {
        "ergebnis/composer-normalize": "^2.13"
    },
    "config": {
        "gitlab-domains": [
            "gitlab.catalyst.net.nz"
        ],
        "sort-packages": true
    },
    "extra": {
        "composer-exit-on-patch-failure": true,
        "drupal-scaffold": {
            "allowed-packages": [
                "catalyst-it/drupal-cove-hosted"
            ],
            "locations": {
                "web-root": "web/"
            }
        },
        "enable-patching": true,
        "installer-paths": {
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "patchLevel": {
            "drupal/core": "-p2"
        }
    },
    "repositories": {
        "drupalorg": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        "catalyst-it/drupal": {
            "type": "composer",
            "url": "https://gitlab.catalyst.net.nz/api/v4/group/36/-/packages/composer/packages.json"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "support": {
        "chat": "https://www.drupal.org/node/314178",
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html"
    }
}
xurizaemon commented 3 years ago

Well, it installs :)

www-data@396ff6d5e641:/app$ composer config repositories.behat-screenshot vcs https://github.com/xurizaemon/behat-screenshot.git

www-data@396ff6d5e641:/app$ composer require integratedexperts/behat-screenshot:dev-38-drupal9
./composer.json has been updated
Running composer update integratedexperts/behat-screenshot
Loading composer repositories with package information
Updating dependencies
Lock file operations: 9 installs, 0 updates, 0 removals
  - Locking behat/behat (v3.8.1)
  - Locking behat/gherkin (v4.8.0)
  - Locking behat/mink (v1.8.1)
  - Locking behat/mink-selenium2-driver (v1.4.0)
  - Locking behat/transliterator (v1.3.0)
  - Locking instaclick/php-webdriver (1.4.7)
  - Locking integratedexperts/behat-screenshot (dev-38-drupal9 327bce3)
  - Locking symfony/config (v4.4.22)
  - Locking symfony/css-selector (v5.2.7)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
  - Downloading behat/gherkin (v4.8.0)
  - Downloading symfony/css-selector (v5.2.7)
  - Downloading behat/mink (v1.8.1)
  - Downloading behat/transliterator (v1.3.0)
  - Downloading instaclick/php-webdriver (1.4.7)
  - Downloading behat/mink-selenium2-driver (v1.4.0)
  - Downloading symfony/config (v4.4.22)
  - Downloading behat/behat (v3.8.1)
  - Syncing integratedexperts/behat-screenshot (dev-38-drupal9 327bce3) into cache
  - Installing behat/gherkin (v4.8.0): Extracting archive
  - Installing symfony/css-selector (v5.2.7): Extracting archive
  - Installing behat/mink (v1.8.1): Extracting archive
  - Installing behat/transliterator (v1.3.0): Extracting archive
  - Installing instaclick/php-webdriver (1.4.7): Extracting archive
  - Installing behat/mink-selenium2-driver (v1.4.0): Extracting archive
  - Installing symfony/config (v4.4.22): Extracting archive
  - Installing behat/behat (v3.8.1): Extracting archive
  - Installing integratedexperts/behat-screenshot (dev-38-drupal9 327bce3): Cloning 327bce3453 from cache
4 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Generating autoload files
48 packages you are using are looking for funding.
Use the `composer fund` command to find out more!