MDL-59926 behat: Make the search bootstrapbase + boost compatible
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 13 Sep 2017 23:26:30 +0000 (01:26 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 13 Sep 2017 23:26:30 +0000 (01:26 +0200)
By combining the title attribute search with the "icon" class instead
of old "img" or new "i" elements we achieve that without too much
complication.

search/tests/behat/behat_search.php

index 743dda2..b6d209b 100644 (file)
@@ -45,7 +45,7 @@ class behat_search extends behat_base {
      */
     public function i_search_for_using_the_header_global_search_box($query) {
         // Hover over the search icon.
-        $this->execute('behat_general::i_hover', ['i[title=Search]', 'css_element']);
+        $this->execute('behat_general::i_hover', ['.icon[title=Search]', 'css_element']);
 
         // Set the field.
         $this->execute('behat_forms::i_set_the_field_to', ['q', $query]);