diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
index 52b48aaf0b..d325168a2f 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
@@ -131,7 +131,7 @@ public function waitForElementVisible($selector, $locator, $timeout = 10000) {
    *   (Optional) Timeout in milliseconds, defaults to 10000.
    *
    * @return bool
-   *   TRUE if not found, FALSE if found.
+   *   TRUE if found, FALSE if not found.
    */
   public function waitForText($text, $timeout = 10000) {
     return (bool) $this->waitForHelper($timeout, function (Element $page) use ($text) {
