Merge branch 'MDL-64676-master-fix' of https://github.com/snake/moodle
authorSara Arjona <sara@moodle.com>
Fri, 26 Apr 2019 09:50:27 +0000 (11:50 +0200)
committerSara Arjona <sara@moodle.com>
Fri, 26 Apr 2019 09:50:27 +0000 (11:50 +0200)
message/tests/behat/behat_message.php

index 935a366..ea079cc 100644 (file)
@@ -90,8 +90,8 @@ class behat_message extends behat_base {
         );
         $this->execute('behat_general::i_click_on_in_the',
             array(
-                $this->escape($userfullname),
-                "link",
+                "//img[@title='Picture of ". $this->escape($userfullname) . "']",
+                "xpath_element",
                 "//*[@data-region='message-drawer']//*[@data-region='view-contact']",
                 "xpath_element",
             )