diff --git a/core/modules/views/src/Tests/ViewElementTest.php b/core/modules/views/src/Tests/ViewElementTest.php
index e55a21c..34b30f3 100644
--- a/core/modules/views/src/Tests/ViewElementTest.php
+++ b/core/modules/views/src/Tests/ViewElementTest.php
@@ -113,6 +113,10 @@ public function testViewElement() {
     $this->drupalGet('views_test_data_element_form');
     $xpath = $this->xpath('//div[@class="view-content"]/div');
     $this->assertEqual(count($xpath), 1);
+
+    // Ensure we don't have nested form elements.
+    $xpath = $this->xpath('//form//form');
+    $this->assertFalse($xpath, 'The views form element is not nested.');
   }
 
   /**
