Skip to content

Instantly share code, notes, and snippets.

@sobi3ch
Created April 16, 2014 12:39
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sobi3ch/10867760 to your computer and use it in GitHub Desktop.
Save sobi3ch/10867760 to your computer and use it in GitHub Desktop.
How integreate 'selectors' with Behat (regon_map is requreid to work with selectors)
default:
paths:
features: 'features'
extensions:
Behat\MinkExtension\Extension:
goutte: ~
selenium2: ~
base_url: https://production.server/
Drupal\DrupalExtension\Extension:
blackbox: ~
region_map:
content: "#content"
footer: "#footer"
left header: "#header-left"
right header: "#header-right"
right sidebar: "#column-right"
selectors:
message_selector: '.messages'
error_message_selector: '.messages.messages-error'
success_message_selector: '.messages.messages-status'
@yehee
Copy link

yehee commented Mar 28, 2018

I am working with Drupal 8 version 8.5.0, and I had to change messages-error to messages--error and messages-status to messages--status in order to make it work. Thank you for the great snippet of code!

@beto-aveiga
Copy link

Thanks for making this public, really helpful 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment