Commit ff1e04e0 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Gerrit Code Review
Browse files

Merge "Bug 1788532: Behat add text not in row step"

parents 8b385239 03309a00
......@@ -498,6 +498,29 @@ EOF;
$this->ensure_node_is_visible($elementnode);
}
/**
* Checks the list/table row does not contain the specified text.
*
* @Then I should not see :text in the :rowtext row
* @param string $text we look for
* @param string $rowtext The list/table row text
* @throws ExpectationException
*/
public function not_in_row($text, $rowtext) {
// The table row container.
try {
$this->i_find_in_row($text, $rowtext);
$exists = true;
}
catch(Exception $e) {
$exists = false;
}
if ($exists) {
throw new ExpectationException('"' . $args['text'] . '" text was found in the "' . $args['element'] . '" element', $context->getSession());
}
}
/**
* Click on the link or button inside a list/table row containing the specified text.
*
......
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