jungleran / drupal-behat-contexts
Additional behat contexts to be used with jhedstrom/drupalextension
Installs: 2 378
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
Requires (Dev)
- phpmd/phpmd: ^2.6
Suggests
- drupal/entityqueue: Enables the use of the EntityQueueContext
- drupal/paragraphs: Enables the use of the ParagraphsContext
- drupal/profile: Enables the use of the ProfileContext
- drupal/search_api: Enables the use of the SearchContext
This package is not auto-updated.
Last update: 2024-11-09 12:14:31 UTC
README
This project contains Behat contexts for Drupal.
What is this repository for?
This Repository is used to extend the default Behat contexts provided by Drupal Behat Extension.
How do I get set up?
Require it through composer and add the required contexts to your behat.yml
file.
Context specific configuration options
Some contexts can be configured through the behat.yml
file. These configuration options are documented below.
\OrdinaDigitalServices\BrowserContext
BrowserContext
resizes the browser window to 1024x768 at the start of each scenario unless specified otherwise. This can be adjusted by adding some configuration in behat.yml
like so (config file shortened for brevity):
default:
suites:
default:
contexts:
- ...
- OrdinaDigitalServices\BrowserContext:
resizeOnScenarioStart: false
defaultWindowSize:
width: 1920
height: 1080
As you can see there are two options that can be set. A boolean resizeOnScenarioStart
to disable the resizing altogether and an array defaultWindowSize
to specify a different default width and/or height.