Loading core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php→core/modules/node/tests/src/FunctionalJavascript/SettingSummariesContentTypeTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ * * @group node */ class TestSettingSummariesContentType extends WebDriverTestBase { class SettingSummariesContentTypeTest extends WebDriverTestBase { /** * {@inheritdoc} Loading Loading @@ -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); } Loading Loading
core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php→core/modules/node/tests/src/FunctionalJavascript/SettingSummariesContentTypeTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ * * @group node */ class TestSettingSummariesContentType extends WebDriverTestBase { class SettingSummariesContentTypeTest extends WebDriverTestBase { /** * {@inheritdoc} Loading Loading @@ -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); } Loading