From 344f8adeed13b268ca1bf0802903f2c81cba2a75 Mon Sep 17 00:00:00 2001 From: cescobedo Date: Fri, 29 Mar 2019 21:28:51 +0100 Subject: [PATCH] MDL-65439 core_message: New step to open settings preferences --- message/tests/behat/behat_message.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/message/tests/behat/behat_message.php b/message/tests/behat/behat_message.php index 5a22ec7a7e4..ea079ccd182 100644 --- a/message/tests/behat/behat_message.php +++ b/message/tests/behat/behat_message.php @@ -239,4 +239,21 @@ class behat_message extends behat_base { $this->escape($convname).'")]'; $this->execute('behat_general::i_click_on', array($xpath, 'xpath_element')); } + + /** + * Open the settings preferences. + * + * @Given /^I open messaging settings preferences$/ + */ + public function i_open_messaging_settings_preferences() { + $this->execute('behat_general::wait_until_the_page_is_ready'); + $this->execute('behat_general::i_click_on', + array( + '//*[@data-region="message-drawer"]//a[@data-route="view-settings"]', + 'xpath_element', + '', + '', + ) + ); + } }