mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-47960 behat: Fixed message node navigation
in i_send_message_to_user, we should use navigation node step, as there might be multiple links with same name.
This commit is contained in:
parent
490d009a57
commit
b7ff40301d
1 changed files with 1 additions and 5 deletions
|
@ -52,11 +52,7 @@ class behat_message extends behat_base {
|
||||||
$steps = array();
|
$steps = array();
|
||||||
$steps[] = new Given('I am on homepage');
|
$steps[] = new Given('I am on homepage');
|
||||||
|
|
||||||
if ($this->running_javascript()) {
|
$steps[] = new Given('I navigate to "' . get_string('messages', 'message') . '" node in "' . get_string('myprofile') . '"');
|
||||||
$steps[] = new Given('I expand "' . get_string('myprofile') . '" node');
|
|
||||||
}
|
|
||||||
|
|
||||||
$steps[] = new Given('I follow "' . get_string('messages', 'message') . '"');
|
|
||||||
$steps[] = new Given('I set the field "' . get_string('searchcombined', 'message') .
|
$steps[] = new Given('I set the field "' . get_string('searchcombined', 'message') .
|
||||||
'" to "' . $this->escape($userfullname) . '"');
|
'" to "' . $this->escape($userfullname) . '"');
|
||||||
$steps[] = new Given('I press "' . get_string('searchcombined', 'message') . '"');
|
$steps[] = new Given('I press "' . get_string('searchcombined', 'message') . '"');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue