public function JavascriptErrorsTest::clearErrorLog in Drupal 10
Clear the JavaScript error log to prevent this test failing for real.
@postCondition
File
- core/
tests/ Drupal/ FunctionalJavascriptTests/ JavascriptErrorsTest.php, line 47
Class
- JavascriptErrorsTest
- Tests that Drupal.throwError will cause a test failure.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function clearErrorLog() {
$this
->getSession()
->executeScript("sessionStorage.removeItem('js_testing_log_test.errors')");
}