Mink can now check that an element does not contain the given HTML
This commit is contained in:
@@ -317,6 +317,16 @@ class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
||||
$this->assertSession()->elementContains('css', $element, $this->fixStepArgument($value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks, that element with specified CSS doesn't contain specified HTML.
|
||||
*
|
||||
* @Then /^the "(?P<element>[^"]*)" element should not contain "(?P<value>(?:[^"]|\\")*)"$/
|
||||
*/
|
||||
public function assertElementNotContains($element, $value)
|
||||
{
|
||||
$this->assertSession()->elementNotContains('css', $element, $this->fixStepArgument($value));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks, that element with specified CSS exists on page.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user