function JSWebAssert::statusMessageNotContains
Same name in other branches
- 10 core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::statusMessageNotContains()
Overrides WebAssert::statusMessageNotContains
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JSWebAssert.php, line 741
Class
- JSWebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function statusMessageNotContains(string $message, ?string $type = NULL) : void {
$selector = $this->buildStatusMessageSelector($message, $type);
// Wait for a second for the message to not exist.
$this->waitForHelper(1000, function (Element $page) use ($selector) {
return !$page->find('xpath', $selector);
});
parent::statusMessageNotContains($message, $type);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.