Merge branch 'MDL-68048-master-behatnotfound' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Sara Arjona 2020-03-03 17:01:33 +01:00
commit 07b6ae5f3a
2 changed files with 5 additions and 5 deletions

View file

@ -217,7 +217,7 @@ class behat_theme_classic_behat_navigation extends behat_navigation {
$menuxpath = "//section[contains(@class,'block_settings')]//div[@id='settingsnav']/ul[1]/li[1]";
if ($mustexist) {
$exception = new ElementNotFoundException($this->getSession(), 'Page administration menu is not found');
$exception = new ElementNotFoundException($this->getSession(), 'Page administration menu');
$this->find('xpath', $menuxpath, $exception);
} else if (!$this->getSession()->getPage()->find('xpath', $menuxpath)) {