diff --git a/lib/tests/behat/behat_action_menu.php b/lib/tests/behat/behat_action_menu.php index 3e69218bdd27..2005d322c0b2 100644 --- a/lib/tests/behat/behat_action_menu.php +++ b/lib/tests/behat/behat_action_menu.php @@ -84,7 +84,7 @@ public function i_choose_in_the_open_action_menu($menuitemstring) { $menuitems = explode('>', $menuitemstring); foreach ($menuitems as $menuitem) { // Gets the node based on the requested selector type and locator. - $menuselector = ".moodle-actionmenu .dropdown.show .dropdown-menu"; + $menuselector = ".moodle-actionmenu .dropdown .dropdown-menu.show"; $node = $this->get_node_in_container("link", trim($menuitem), "css_element", $menuselector); $node->click(); } diff --git a/theme/boost/scss/moodle/debug.scss b/theme/boost/scss/moodle/debug.scss index d439ffc304c6..80cbfcb35fa7 100644 --- a/theme/boost/scss/moodle/debug.scss +++ b/theme/boost/scss/moodle/debug.scss @@ -76,6 +76,11 @@ body.behat-site { } } +// Remove the scroll-behavior: smooth from the root element for behat. +:root:has(body.behat-site) { + scroll-behavior: auto; +} + .phpinfo table, .phpinfo th, .phpinfo h2 { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 411a0589e11e..adc736eaefd9 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -38605,6 +38605,10 @@ body.behat-site.path-grade-report-grader .gradeparent tr.heading { top: auto; } +:root:has(body.behat-site) { + scroll-behavior: auto; +} + .phpinfo table, .phpinfo th, .phpinfo h2, diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 75324092b3b6..923b0b67063d 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -38539,6 +38539,10 @@ body.behat-site.path-grade-report-grader .gradeparent tr.heading { top: auto; } +:root:has(body.behat-site) { + scroll-behavior: auto; +} + .phpinfo table, .phpinfo th, .phpinfo h2,