Behat Drupal Change Username Label Login | Behat Drupal Customize Text
Quick little bit of information for you all! If you're dealing with Behat and Drupal, and find yourself making the very common change where you alter the username field to use email address, Behat will break in a variety of places as for logging a user in it looks very the text "user name". There's actually a variety of assumed text norms in Drupal Behat, but the good news is, you can override them!
You're going to want to refer to secton 7.3 of the Drupal Behat Documents PDF (version 1.1), which should be linked below. In there, you'll see that you can override text in your behat YML. Here's an example for you all:
Drupal\DrupalExtension: selectors: region: '.css.selector' subcontexts: paths: - "/whatever/wherever" text: username_field: "Email address"
So you can see in this case, we changed the username field to "Email address" and we're good to go!
What are all of the text fields you might ask? No clue.
Where Can I get all of the possible text fields? No clue.
Comment if you know more!