DevShop Drupal Behat Extension
This Behat extension simply extends the Drupal Behat Extension to make it a bit more useful.
It does not require DevShop, but some features are even better when using DevShop.
Then I take a screenshot
When I run "command"
This step simply runs
exec() on any command and throws an exception if a non-zero exit code is thrown.
I select the radio button with a label that contains the string :label
This is very helpful for radio buttons that have a long or dynamic Label. Searches for the string instead of doing an exact match.
This plugin is now included in the DevShop Composer Template, which is the easiest way to get a Drupal codebase running in DevShop.
If you already have a project, you can copy the entire contents of the
tests folder into your project.
To start a new project, use the command:
composer create-project devshop/composer-template:8.x-dev --stability dev --no-interaction mynewproject
Step Failure Information
When any step fails, the test runner outputs the URL it was on, it saves the HTML and a screenshot to web-readable folders, and gives you a link, like so:
Many more features are in the works!