Merge branch 'MDL-82232-500' of https://github.com/junpataleta/moodle into MOODLE_500_STABLE
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ $string['accesskey'] = 'Access key, {$a}';
|
||||
$string['accessstatement'] = 'Accessibility statement';
|
||||
$string['activitynext'] = 'Next activity';
|
||||
$string['activityprev'] = 'Previous activity';
|
||||
$string['breadcrumb'] = 'Navigation bar';
|
||||
$string['breadcrumb'] = 'Breadcrumb';
|
||||
$string['eventcontextlocked'] = 'Context frozen';
|
||||
$string['eventcontextunlocked'] = 'Context unfrozen';
|
||||
$string['hideblocka'] = 'Hide {$a} block';
|
||||
|
||||
@@ -1395,9 +1395,10 @@ class behat_navigation extends behat_base {
|
||||
* @Given /^I follow the breadcrumb "(?P<url_string>(?:[^"]|\\")*)"$/
|
||||
*/
|
||||
public function go_to_breadcrumb_location(string $pagename): void {
|
||||
$breadcrumblabel = get_string('breadcrumb', 'access');
|
||||
$link = $this->getSession()->getPage()->find(
|
||||
'xpath',
|
||||
"//nav[@aria-label='Navigation bar']/ol/li[last()][contains(normalize-space(.), '" . $pagename . "')]"
|
||||
"//nav[@aria-label='$breadcrumblabel']/ol/li[last()][contains(normalize-space(.), '$pagename')]"
|
||||
);
|
||||
if (!$link) {
|
||||
$this->execute("behat_general::i_click_on_in_the", [$pagename, 'link', 'page', 'region']);
|
||||
|
||||
Reference in New Issue
Block a user