JavascriptErrorsTest.php in Drupal 9
File
core/tests/Drupal/FunctionalJavascriptTests/JavascriptErrorsTest.php
View source
<?php
namespace Drupal\FunctionalJavascriptTests;
class JavascriptErrorsTest extends WebDriverTestBase {
protected $defaultTheme = 'stark';
protected static $modules = [
'js_errors_test',
];
public function testJavascriptErrors() : void {
$this
->expectDeprecation('Not failing JavaScript test for JavaScript errors is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. This test had the following JavaScript errors: Error: A manually thrown error.');
$this
->drupalGet('js_errors_test');
$this
->drupalGet('user');
}
}