Monthly Archives: January 2019

Combining Steps in Behat for Drupal

Lately I have found myself repeating several lines of behat steps over and over again. Here is a sample of the behat code I use to choose a specific checkbox from an entity browser popup:

There are a few steps in here

Tagged with: ,
Posted in Development

Adding Level Number Class to Menu Items in Drupal 8

This is a quick post showing how to add level classes to menu items in Drupal 8. Here’s the result, showing the additional menu--level-N  and menu-item--level-N  classes: Step 1: Create a New Twig template File Determine which Twig template you need to

Tagged with: , ,
Posted in Development

Setting Drupal 8 Node Properties with Behat

The title of this post could also have been “Opening and Closing a Details Element with Behat” or “Clicking Any Element with Behat”. The Drupal 8 node add/edit screen has a number properties on the right side of the screen. I

Tagged with: , ,
Posted in Development