diff --git a/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php new file mode 100644 index 0000000..b2f064a --- /dev/null +++ b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php @@ -0,0 +1,47 @@ +drupalCreateUser(['administer content types']); + $this->drupalLogin($admin_user); + $this->drupalCreateContentType(['type' => 'test']); + } + + /** + * Test a vertical tab 'Workflow' summary. + */ + public function testWorkflowSummary() { + $this->drupalGet('admin/structure/types/manage/test'); + $session = $this->getSession(); + $page = $session->getPage(); + $page->findField('options[status]')->uncheck(); + $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'; + })); + } + +}