Commit 52f43ddd authored by Son Nguyen's avatar Son Nguyen

Fix the step I click on "button or link" in "Text" row

behatnotneeded: No behat test for this behat step fixing

Change-Id: I172acc8686e575ea9921a43aa8c5d9713537c0cb
parent f101aac5
......@@ -372,7 +372,8 @@ class BehatGeneral extends BehatBase {
// The table row container.
$rowtextliteral = $this->escaper->escapeLiteral($rowtext);
$exception = new ElementNotFoundException($this->getSession(), 'text', null, 'the row containing the text "' . $rowtext . '"');
$xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'listrow', ' '))" .
$xpath = "//div[(contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'listrow', ' '))" .
" or contains(concat(' ', normalize-space(@class), ' '), concat(' ', 'list-group-item', ' ')))" .
" and contains(normalize-space(.), " . $rowtextliteral . ")]" .
"|" .
"//tr[contains(normalize-space(.), " . $rowtextliteral . ")]";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment