diff --git a/lib/tests/behat/behat_action_menu.php b/lib/tests/behat/behat_action_menu.php index 2e90a3af3fd..6ec4631b74e 100644 --- a/lib/tests/behat/behat_action_menu.php +++ b/lib/tests/behat/behat_action_menu.php @@ -123,8 +123,8 @@ class behat_action_menu extends behat_base { if ($this->running_javascript()) { // Open the menu by clicking on the trigger. $this->execute( - 'behat_general::i_click_on', - [$menu, "NodeElement"] + 'behat_general::i_click_on_in_the', + ['a.dropdown-toggle', 'css_element', $menu, "NodeElement"] ); }