diff --git a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php index 217da3f..4760ee6 100644 --- a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php +++ b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php @@ -37,10 +37,13 @@ public function testWorkflowSummary() { $page->findField('options[sticky]')->check(); $page->findField('options[promote]')->check(); $page->findField('options[revision]')->check(); - $this->assertTrue($page->waitFor(10, function () use ($page) { - $summary = $page->find('css', '[href="#edit-workflow"] .vertical-tabs__menu-item-summary')->getText(); - return $summary === 'Not published, Promoted to front page, Sticky at top of lists, Create new revision'; - })); + $locator = '[href="#edit-workflow"] .vertical-tabs__menu-item-summary'; + $page->waitFor(10, function () use ($page, $locator) { + $summary = $page->find('css', $locator)->getText(); + return strpos('Not published', $summary) !== FALSE; + }); + $summary = $page->find('css', $locator)->getText(); + $this->assertEquals('Not published, Promoted to front page, Sticky at top of lists, Create new revision', $summary); } }