diff --git a/htdocs/testing/frameworks/behat/classes/BehatGeneral.php b/htdocs/testing/frameworks/behat/classes/BehatGeneral.php index a867c84e8b180ea666ad6af82f697f181bd389f0..8af2ae3cc9ef2af29325931fa2ff499b97f83278 100644 --- a/htdocs/testing/frameworks/behat/classes/BehatGeneral.php +++ b/htdocs/testing/frameworks/behat/classes/BehatGeneral.php @@ -1524,6 +1524,7 @@ EOF; * */ public function i_delete_link_resource_menu_item($item) { + $this->getSession()->wait(2000, '(jQuery("div#menuitemlist tr:contains(\'' . $item . '\') button:contains(\'Delete\')")[0].length > 0)'); $this->getSession()->executeScript('jQuery("div#menuitemlist tr:contains(\'' . $item . '\') button:contains(\'Delete\')")[0].click();'); usleep(10000); $this->i_accept_confirm_popup(); diff --git a/htdocs/testing/frameworks/behat/classes/BehatNavigation.php b/htdocs/testing/frameworks/behat/classes/BehatNavigation.php index 32ac7da55a3bc0262a807ffaff176c6dfea13a39..fc45e2481dc44774815e5772c2fe3bbdddb13a9e 100644 --- a/htdocs/testing/frameworks/behat/classes/BehatNavigation.php +++ b/htdocs/testing/frameworks/behat/classes/BehatNavigation.php @@ -192,8 +192,11 @@ class BehatNavigation extends BehatBase { // We just want to expand the parent node as this doesn't align top left to the outer-link a link. $node = $node->getParent(); } - $node->click(); + if ($node->getParent()->hasAttribute('id')) { + $id = $node->getParent()->getAttribute('id'); + $this->getSession()->wait(2000, "($('#" . $id . "_target.show').length > 0)"); + } } /** diff --git a/htdocs/theme/raw/templates/admin/site/menu.tpl b/htdocs/theme/raw/templates/admin/site/menu.tpl index f33283f529fba79610de27958376a882edce48bf..5ab47a750cb988c4ff12509bd5c20b002a798fe4 100644 --- a/htdocs/theme/raw/templates/admin/site/menu.tpl +++ b/htdocs/theme/raw/templates/admin/site/menu.tpl @@ -6,7 +6,7 @@

{str tag=linksandresourcesmenupagedescription section=admin args=$descriptionstrargs}