MDL-77375 tool_dataprivacy: set boundary of the dropdowns

This commit is contained in:
Shamim Rezaie 2023-05-26 05:23:35 +10:00
parent 3210652dee
commit c235339e02
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ class data_requests_table extends table_sql {
$actionsmenu = new action_menu($actions);
$actionsmenu->set_menu_trigger(get_string('actions'));
$actionsmenu->set_owner_selector('request-actions-' . $requestid);
$actionsmenu->set_constraint('[data-region=data-requests-table] > .no-overflow');
$actionsmenu->set_boundary('window');
return $OUTPUT->render($actionsmenu);
}

View File

@ -52,7 +52,7 @@ class behat_action_menu extends behat_base {
// Gets the node based on the requested selector type and locator.
$node = $this->get_node_in_container(
"css_element",
"[role=button][aria-haspopup=true],[role=menuitem][aria-haspopup=true]",
"[role=button][aria-haspopup=true],button[aria-haspopup=true],[role=menuitem][aria-haspopup=true]",
$selectortype,
$element
);