Merge branch 'MDL-76398-400' of https://github.com/paulholden/moodle into MOODLE_400_STABLE

This commit is contained in:
Andrew Nicols
2022-12-11 20:21:00 +08:00
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ XPATH
descendant::*[
contains(concat(' ', normalize-space(@class), ' '), ' dropdown-toggle ')
and
contains(normalize-space(.), %locator%)
(contains(normalize-space(.), %locator%) or descendant::*[%titleMatch%])
]
]
XPATH
@@ -109,7 +109,11 @@ class behat_reportbuilder extends behat_base {
* @param string $row
*/
public function i_press_action_in_the_report_row(string $action, string $row): void {
$this->execute('behat_action_menu::i_open_the_action_menu_in', [$this->escape($row), 'table_row']);
$this->execute('behat_action_menu::i_choose_in_the_open_action_menu', [$this->escape($action)]);
$this->execute('behat_action_menu::i_choose_in_the_named_menu_in_container', [
$this->escape($action),
get_string('actions', 'core_reportbuilder'),
$this->escape($row),
'table_row',
]);
}
}