hidgweb/drupal-behat-contexts

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides additional step definitions for testing Drupal sites using the Behat Drupal Extension.

Maintainers

Package info

github.com/HID-GS/drupal-behat-contexts

pkg:composer/hidgweb/drupal-behat-contexts

Statistics

Installs: 1 128

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

2.1.0 2020-06-08 16:29 UTC

README

Latest Stable Version Build Status

Provides additional step definitions for testing Drupal sites using the Behat Drupal Extension.

Installation

Add the following to your composer.json file:

{
  "require-dev": {
    "hidgweb/drupal-behat-contexts": "^2.0"
  }
}

Then, update your dependencies by running composer update hidgweb/drupal-behat-contexts.

Configuration

Once installed, add any of the contexts you want to use to your project's behat.yml file:

  default:
    suites:
      default:
        contexts:
          - HidGlobal\DrupalBehatContexts\Context\ImageContext
          - HidGlobal\DrupalBehatContexts\Context\AjaxContext
          - HidGlobal\DrupalBehatContexts\Context\KeyReferenceContext
          - HidGlobal\DrupalBehatContexts\Context\CookieContext

Credits

KeyReferenceContext sourced from https://raw.githubusercontent.com/Kerby70/openy/8.x-1.x/tests/features/bootstrap/OpenyDrupalContext.php