mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-72481 admin: Update behat selector
The more menu can be a tablist or a manubar Co-authored-by: Shamim Rezaie <shamim@moodle.com>
This commit is contained in:
parent
6937d87ddd
commit
af496f2c85
1 changed files with 1 additions and 1 deletions
|
@ -1056,7 +1056,7 @@ class behat_navigation extends behat_base {
|
|||
$tabxpath = '//ul[@role=\'tablist\']/li/a[contains(normalize-space(.), ' . $tabname . ')]';
|
||||
$menubarxpath = '//ul[@role=\'menubar\']/li/a[contains(normalize-space(.), ' . $tabname . ')]';
|
||||
$linkname = behat_context_helper::escape(get_string('moremenu'));
|
||||
$menubarmorexpath = '//ul[@role=\'menubar\']/li/a[contains(normalize-space(.), ' . $linkname . ')]';
|
||||
$menubarmorexpath = '//ul[contains(@class,\'more-nav\')]/li/a[contains(normalize-space(.), ' . $linkname . ')]';
|
||||
$tabnode = $this->getSession()->getPage()->find('xpath', $tabxpath);
|
||||
$menunode = $this->getSession()->getPage()->find('xpath', $menubarxpath);
|
||||
$menubuttons = $this->getSession()->getPage()->findAll('xpath', $menubarmorexpath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue