jhedstrom / drupalextension

An integration layer between Behat, Mink Extension, and Drupal.
GNU General Public License v2.0
209 stars 192 forks source link

Make it possible to override how to get the log out link #668

Open eiriksm opened 1 month ago

eiriksm commented 1 month ago

Similar as in #631, from time to time I find myself running tests that some times have translated text in there and some times not. For example when sharing code between projects.

A more robust method for me, for checking if the log out link is there or not is to provide a helper method for getting the element, which I then could override to be a consistent selector all the time.

This PR (which should make the code behave completely identically) makes that possible for me (and others)