mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-72032 core: Fixup the behat nav
- Part of: MDL-69588
This commit is contained in:
parent
da33265d73
commit
9f40dcae9a
@ -945,6 +945,8 @@ class behat_navigation extends behat_base {
|
||||
$moreitemxpath = '//ul[@data-region=\'moredropdown\']/li/a[contains(normalize-space(.), ' . $tabname . ')]';
|
||||
if ($morenode = $this->getSession()->getPage()->find('xpath', $moreitemxpath)) {
|
||||
$this->execute('behat_general::i_click_on', [$morenode, 'NodeElement']);
|
||||
$xpath .= '//div[contains(@class,\'active\')]';
|
||||
array_shift($parentnodes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user