Merge branch 'MDL-56684-master-fix1' of http://github.com/damyon/moodle

This commit is contained in:
Dan Poltawski 2016-11-07 08:19:16 +00:00
commit 912d854dc8

View File

@ -44,7 +44,7 @@ class behat_tool_lp extends behat_base {
* @param string $rowname
*/
public function click_on_edit_menu_of_the_row($nodetext, $rowname) {
$xpathtarget = "//ul//li//ul//li[@class='tool-lp-menu-item']//a[contains(.,'" . $nodetext . "')]";
$xpathtarget = "//ul//li//ul//li[contains(concat(' ', @class, ' '), ' tool-lp-menu-item ')]//a[contains(.,'" . $nodetext . "')]";
$this->execute('behat_general::i_click_on_in_the', [get_string('edit'), 'link', $this->escape($rowname), 'table_row']);
$this->execute('behat_general::i_click_on_in_the', [$xpathtarget, 'xpath_element', $this->escape($rowname), 'table_row']);