Tag Archives: pdiff

Behat and CSS testing

Behat logoIt often happens that new Drupal website components display differently on different pages, or that CSS changes affect one page differently from other pages. With most coding, regression testing is used to trap for these sorts of issues. Even with the most popular test engines – CasperJS, Karma, Jasmine – you cannot create back-end unit tests. This is why, for testing Drupal sites, our QA team chose the Behat framework. The question is: Can we use Behat to test our site for visual consistency as effectively as we use it to test, say, JavaScript? Can we use Behat to test our CSS? Continue reading