MDL-42731 behat: load 'Site administration' when expanding node in non-javascript mode
This commit is contained in:
@@ -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') . '"')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user