From 10d7b48aba9a5b181ad72b02241fd3572d9b21c0 Mon Sep 17 00:00:00 2001 From: catch Date: Tue, 7 Dec 2021 14:55:46 +0000 Subject: [PATCH] Issue #3251988 by vijaycs85, smccabe: Update return param of waitForText method (cherry picked from commit 714c3414196f3fab7ae451b79cd30ff041e38366) --- core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php index 52b48aaf0b0..c427a39310e 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php @@ -123,7 +123,7 @@ JS; } /** - * Waits for the specified text and returns its element when available. + * Waits for the specified text and returns TRUE when it is available. * * @param string $text * The text to wait for. @@ -131,7 +131,7 @@ JS; * (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) {