From c81a34774e4486a20e0fe857d3b40219e8e5a904 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 7 Nov 2016 16:02:44 +0800 Subject: [PATCH] MDL-56684 boost: Fix for competency behat tests with boost theme --- admin/tool/lp/tests/behat/behat_tool_lp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/tool/lp/tests/behat/behat_tool_lp.php b/admin/tool/lp/tests/behat/behat_tool_lp.php index 0a5fea5c8cf..a43d857ff68 100644 --- a/admin/tool/lp/tests/behat/behat_tool_lp.php +++ b/admin/tool/lp/tests/behat/behat_tool_lp.php @@ -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']);