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:
Rajesh Taneja 2014-10-30 09:56:36 +08:00 committed by Marina Glancy
parent 490d009a57
commit b7ff40301d

View file

@ -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') . '"');