mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-64665 core_message: New step to open settings preferences
This commit is contained in:
parent
bc342f101a
commit
5d0119772b
@ -232,4 +232,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',
|
||||
'',
|
||||
'',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user