diff --git a/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
index 497d69629df452a0a922f17a3fd014d54b407b92..feb00005c946e404a7ed76bf2920c4f62da91024 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php
@@ -16,7 +16,7 @@ class WebDriverWebAssert extends JSWebAssert {
    *   The status code.
    */
   public function statusCodeEquals($code) {
-    @trigger_error('Support for statusCodeEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::statusCodeEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::statusCodeEquals($code);
   }
 
@@ -27,7 +27,7 @@ public function statusCodeEquals($code) {
    *   The status code.
    */
   public function statusCodeNotEquals($code) {
-    @trigger_error('Support for statusCodeNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::statusCodeNotEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::statusCodeNotEquals($code);
   }
 
@@ -40,7 +40,7 @@ public function statusCodeNotEquals($code) {
    *   The value to check the header against.
    */
   public function responseHeaderEquals($name, $value) {
-    @trigger_error('Support for responseHeaderEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderEquals($name, $value);
   }
 
@@ -53,7 +53,7 @@ public function responseHeaderEquals($name, $value) {
    *   The value to check the header against.
    */
   public function responseHeaderNotEquals($name, $value) {
-    @trigger_error('Support for responseHeaderNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderNotEquals() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderNotEquals($name, $value);
   }
 
@@ -66,7 +66,7 @@ public function responseHeaderNotEquals($name, $value) {
    *   The value to check the header against.
    */
   public function responseHeaderContains($name, $value) {
-    @trigger_error('Support for responseHeaderContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderContains() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderContains($name, $value);
   }
 
@@ -79,7 +79,7 @@ public function responseHeaderContains($name, $value) {
    *   The value to check the header against.
    */
   public function responseHeaderNotContains($name, $value) {
-    @trigger_error('Support for responseHeaderNotContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderNotContains() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderNotContains($name, $value);
   }
 
@@ -92,7 +92,7 @@ public function responseHeaderNotContains($name, $value) {
    *   The value to check the header against.
    */
   public function responseHeaderMatches($name, $regex) {
-    @trigger_error('Support for responseHeaderMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderMatches() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderMatches($name, $regex);
   }
 
@@ -105,7 +105,7 @@ public function responseHeaderMatches($name, $regex) {
    *   The value to check the header against.
    */
   public function responseHeaderNotMatches($name, $regex) {
-    @trigger_error('Support for responseHeaderNotMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
+    @trigger_error('WebDriverWebAssert::responseHeaderNotMatches() is deprecated in drupal:8.4.0 and is removed in drupal:12.0.0. See https://www.drupal.org/node/2857562', E_USER_DEPRECATED);
     parent::responseHeaderNotMatches($name, $regex);
   }