MDL-72032 core: Fixup the behat nav

- Part of: MDL-69588
This commit is contained in:
Peter Dias 2021-07-02 10:15:10 +08:00 committed by Mathew May
parent da33265d73
commit 9f40dcae9a

View File

@ -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);
}
}
}