Behat Steps 3.4.0 Adds XML, Responsive, and Drupal Module Testing Features
Behat Steps 3.4.0 delivers a wide-ranging update to DrevOps' automated testing toolkit for Drupal, adding XML response assertions, responsive viewport testing, enhanced form field support, and comprehensive module state handling—offering QA teams more control with less custom code.
The new release from DrevOps introduces extensive XML testing capabilities. Testers can now assert the presence, value, and structure of XML elements and attributes, including namespace verification. Responsive testing is also now supported, with new steps to simulate screen sizes by width, height, or named breakpoints.
New field interactions include full radio button support, enhanced select/unselect behaviours, and granular control over date/time fields. Test scenarios can disable browser-side validation globally using annotations or targeted steps—improving test clarity and cross-browser consistency.
Drupal-specific automation gets a boost with step definitions to enable or disable individual or multiple modules and annotations like @module or @module:!modulename to set module states automatically before a scenario begins. This simplifies setup and reduces redundant boilerplate in complex testing pipelines.
Additional updates include support for sending test emails with cc and bcc headers, vertical entity creation using column-based input, and better link validation handling. The Watchdog trait has also been updated to detect missing logging tables, helping ensure log-based assertions behave predictably.
With this release, every trait in Behat Steps now has 100% internal test coverage—providing Drupal QA teams with a stable, extensible, and fully validated framework for behaviour-driven development (BDD) and automated acceptance testing.
