diff --git a/theme/boost/tests/behat/behat_theme_boost_behat_action_menu.php b/theme/boost/tests/behat/behat_theme_boost_behat_action_menu.php index 15597921458..c7e536b628b 100644 --- a/theme/boost/tests/behat/behat_theme_boost_behat_action_menu.php +++ b/theme/boost/tests/behat/behat_theme_boost_behat_action_menu.php @@ -39,7 +39,7 @@ class behat_theme_boost_behat_action_menu extends behat_action_menu { public function i_open_the_action_menu_in($element, $selectortype) { // Gets the node based on the requested selector type and locator. - $node = $this->get_node_in_container("css_element", "[role=menuitem][aria-haspopup=true]", $selectortype, $element); + $node = $this->get_node_in_container("css_element", "[role=button][aria-haspopup=true]", $selectortype, $element); // Check if it is not already opened. if ($node->getAttribute('aria-expanded') === 'true') {