diff --git a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php b/core/modules/node/tests/src/FunctionalJavascript/SettingSummariesContentTypeTest.php
similarity index 87%
rename from core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php
rename to core/modules/node/tests/src/FunctionalJavascript/SettingSummariesContentTypeTest.php
index 915355df8037340360626fed5cc0a725b7ec737c..99607edd4df89155656534715bd5e81c28af9c5f 100644
--- a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php
+++ b/core/modules/node/tests/src/FunctionalJavascript/SettingSummariesContentTypeTest.php
@@ -9,7 +9,7 @@
  *
  * @group node
  */
-class TestSettingSummariesContentType extends WebDriverTestBase {
+class SettingSummariesContentTypeTest extends WebDriverTestBase {
 
   /**
    * {@inheritdoc}
@@ -45,10 +45,10 @@ public function testWorkflowSummary() {
     $page->findField('options[promote]')->check();
     $page->findField('options[revision]')->check();
     $locator = '[href="#edit-workflow"] .vertical-tabs__menu-item-summary';
-    $page->waitFor(10, function () use ($page, $locator) {
+    $this->assertTrue($page->waitFor(10, function () use ($page, $locator) {
       $summary = $page->find('css', $locator)->getText();
-      return strpos('Not published', $summary) !== FALSE;
-    });
+      return str_contains($summary, 'Not published');
+    }));
     $summary = $page->find('css', $locator)->getText();
     $this->assertEquals('Not published, Promoted to front page, Sticky at top of lists, Create new revision', $summary);
   }