diff --git a/core/modules/comment/src/Tests/CommentInterfaceTest.php b/core/modules/comment/src/Tests/CommentInterfaceTest.php
index 98eee30..42fbbe3 100644
--- a/core/modules/comment/src/Tests/CommentInterfaceTest.php
+++ b/core/modules/comment/src/Tests/CommentInterfaceTest.php
@@ -27,6 +27,7 @@ function testCommentInterface() {
     $this->setCommentPreview(DRUPAL_DISABLED);
     $this->setCommentForm(TRUE);
     $this->setCommentSubject(FALSE);
+    $this->assertNoPattern('@<h2[^>]*>Comments</h2>@', 'Comments title was not displayed.');
     $this->setCommentSettings('default_mode', CommentManagerInterface::COMMENT_MODE_THREADED, 'Comment paging changed.');
     $this->drupalLogout();
 
@@ -35,6 +36,7 @@ function testCommentInterface() {
     $comment_text = $this->randomMachineName();
     $comment = $this->postComment($this->node, $comment_text);
     $this->assertTrue($this->commentExists($comment), 'Comment found.');
+    $this->assertPattern('@<h2[^>]*>Comments</h2>@', 'Comments title displayed.');
 
     // Set comments to have subject and preview to required.
     $this->drupalLogout();
