MDL-64676 core_message: fix legacy behat step which failed on firefox

Old step was looking for a link, which didn't exist. Now, we use image.
This commit is contained in:
Jake Dallimore 2019-04-26 15:22:43 +08:00
parent 694ce91725
commit ca264ee670

View 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",
)