function JavascriptErrorsTest::clearErrorLog
Clear the JavaScript error log to prevent this test failing for real.
Attributes
#[PostCondition]
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JavascriptErrorsTest.php, line 67
Class
- JavascriptErrorsTest
- Tests that Drupal.throwError will cause a test failure.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function clearErrorLog() : void {
$this->getSession()
->executeScript("sessionStorage.removeItem('js_testing_log_test.errors')");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.