hidgweb / drupal-behat-contexts
Provides additional step definitions for testing Drupal sites using the Behat Drupal Extension.
Installs: 1 122
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 2
Requires
- drupal/drupal-extension: ^4.1
Requires (Dev)
- drupal/coder: ^8.3
- drush/drush: ^8
- masterminds/html5: 2.4
- symfony/translation: ^3.4
This package is auto-updated.
Last update: 2024-10-19 22:36:24 UTC
README
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