diff --git a/core/modules/views_ui/src/Tests/PreviewTest.php b/core/modules/views_ui/src/Tests/PreviewTest.php
index ff10213..9ca9950 100644
--- a/core/modules/views_ui/src/Tests/PreviewTest.php
+++ b/core/modules/views_ui/src/Tests/PreviewTest.php
@@ -228,6 +228,27 @@ public function testPreviewAdditionalInfo() {
     // Check that additional assets are attached.
     $this->assertTrue(strpos($this->getDrupalSettings()['ajaxPageState']['libraries'], 'views_ui_test/views_ui_test.test') !== FALSE, 'Attached library found.');
     $this->assertRaw('css/views_ui_test.test.css', 'Attached CSS asset found.');
+
+    // Enable argument title.
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_preview/default/argument/id', [
+      'options[title_enable]' => TRUE,
+      'options[title]' => 'argument !1',
+    ], t('Apply'));
+    // Check that argument title is rendered in info area with argument.
+    $this->drupalPostForm(NULL, ['view_args' => '2'], t('Update preview'));
+    $this->assertPreviewTitle('argument 2');
+    // Check that the view title is rendered in info area without argument.
+    $this->drupalPostForm(NULL, ['view_args' => ''], t('Update preview'));
+    $this->assertPreviewTitle(t('Test preview'));
+    // Disable argument title.
+    $this->drupalPostForm('admin/structure/views/nojs/handler/test_preview/default/argument/id', [
+      'options[title_enable]' => FALSE,
+    ], t('Apply'));
+    // Check that the view title is again rendered in info area.
+    $this->drupalPostForm(NULL, ['view_args' => '2'], t('Update preview'));
+    $this->assertPreviewTitle(t('Test preview'));
+    $this->drupalPostForm(NULL, ['view_args' => ''], t('Update preview'));
+    $this->assertPreviewTitle(t('Test preview'));
   }
 
   /**
@@ -309,4 +330,22 @@ protected function assertClass(\SimpleXMLElement $element, $class, $message = NU
     $this->assertTrue(strpos($element['class'], $class) !== FALSE, $message);
   }
 
+  /**
+   * Asserts that the preview info title is the given string.
+   *
+   * @param string $title
+   *   The string the title should be.
+   * @param string $message
+   *   (optional) A message to display with the assertion.
+   *
+   * @return bool
+   *   TRUE on pass, FALSE on fail.
+   */
+  protected function assertPreviewTitle($title, $message = NULL) {
+    $result = $this->xpath('//div[@id="views-live-preview"]/div[contains(@class, views-query-info)]//tr[td[1]/strong=:label]/td[2]', [
+      ':label' => t('Title'),
+    ]);
+    return $this->assertEqual($title, (string) $result[0], $message);
+  }
+
 }
