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 ef1d92361fabf00d7b81d109a9f8a0767310db05..238d003b6cd1e9a93aee7505809094294cefc579 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); }