This is a wiki page for Behat examples and snippets that might be useful to other people building Drupal sites. Add yours here!
Snippets
- Complex node creation, with field collections and entity references
- A generic approach to waiting for things to load (Blog)
- Verify the visibility of Drupal form elements.
- Handling "[curl] 28: Operation timed out" errors (Gist) [NOTE: this technique can be used to set other curl options for your tests]
- Look for the presence of a form within a region, using the HTML id or name attribute of the form tag
- Testing an autocomplete field on a form