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..8a7d445
--- /dev/null
+++ b/core/modules/node/tests/src/FunctionalJavascript/TestSettingSummariesContentType.php
@@ -0,0 +1,58 @@
+<?php
+
+namespace Drupal\Tests\node\FunctionalJavascript;
+
+use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
+
+/**
+ * Tests the JavaScript updating of summaries on content type form.
+ *
+ * @group node
+ */
+class TestSettingSummariesContentType extends JavascriptTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['language', 'node'];
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setUp() {
+    parent::setUp();
+
+    $admin_user = $this->drupalCreateUser(['administer content types']);
+    $this->drupalLogin($admin_user);
+    $this->drupalCreateContentType(['type' => 'test']);
+  }
+
+  /**
+   * Tests a spaces between commas in vertical tab summaries.
+   */
+  public function testSpacesBetweenCommasInSummaries() {
+    $this->drupalGet('admin/structure/types/manage/test');
+    $session = $this->getSession();
+    $page = $session->getPage();
+
+    // Get summaries text before checking.
+    $init_summaries_text = $page->findAll('css', '.vertical-tabs__menu')[0]->getText();
+
+    // Checking all checkboxes.
+    $checkboxes = $page->findAll('css', '.vertical-tabs__panes [type=checkbox]');
+    foreach ($checkboxes as $checkbox) {
+      $checkbox->check();
+    }
+
+    // Wait while summaries text will changed.
+    $page->waitFor(10, function () use ($page, $init_summaries_text) {
+      $summaries_text = $page->findAll('css', '.vertical-tabs__menu')[0]->getText();
+      return $init_summaries_text !== $summaries_text;
+    });
+
+    // Test that summaries haven't excess spaces.
+    $summaries_text = $page->findAll('css', '.vertical-tabs__menu')[0]->getText();
+    $this->assertNotContains(' , ', $summaries_text);
+  }
+
+}
