Skip to content

Commit

Permalink
MDL-75669 theme_boost: Fix BS5 related behat
Browse files Browse the repository at this point in the history
  • Loading branch information
roland04 committed Dec 5, 2024
1 parent 0e79a14 commit bc57202
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/behat/behat_action_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
5 changes: 5 additions & 0 deletions theme/boost/scss/moodle/debug.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc57202

Please sign in to comment.