MDL-42731 behat: load 'Site administration' when expanding node in non-javascript mode

This commit is contained in:
Marina Glancy
2013-12-02 17:44:32 +11:00
parent e7c71c448b
commit 6dfd8325f0
6 changed files with 37 additions and 29 deletions
-19
View File
@@ -125,23 +125,4 @@ class behat_admin extends behat_base {
$this->getSession()->wait($timeout, $javascript);
}
}
/**
* Goes to notification page ensuring site admin navigation is loaded.
*
* @Given /^I go to notifications page$/
* @return Given[]
*/
public function i_go_to_notifications_page() {
if ($this->running_javascript()) {
return array(
new Given('I expand "' . get_string('administrationsite') . '" node'),
new Given('I follow "' . get_string('notifications') . '"')
);
} else {
return array(
new Given('I follow "' . get_string('administrationsite') . '"')
);
}
}
}