From b962667c822a706e02d424b809696dc898c57844 Mon Sep 17 00:00:00 2001
From: xjm <xjm@65776.no-reply.drupal.org>
Date: Sat, 7 Jan 2023 22:44:12 -0600
Subject: [PATCH] Issue #3324901 by alexpott: TestSettingSummariesContentType
 has a few problems

---
 ...ontentType.php => SettingSummariesContentTypeTest.php} | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename core/modules/node/tests/src/FunctionalJavascript/{TestSettingSummariesContentType.php => SettingSummariesContentTypeTest.php} (87%)

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 915355df8037..99607edd4df8 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);
   }
-- 
GitLab