diff --git a/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php b/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php
index 6937887..6a28f7f 100644
--- a/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/Views/RowPluginTest.php
@@ -113,6 +113,7 @@ public function testRowPlugin() {
 
     // Test with view_mode full.
     $output = $view->preview();
+    $output = drupal_render($output);
     foreach ($this->nodes as $node) {
       $body = $node->body;
       $teaser = $body[LANGUAGE_NOT_SPECIFIED][0]['summary'];
@@ -124,6 +125,7 @@ public function testRowPlugin() {
     // Test with teasers.
     $view->rowPlugin->options['view_mode'] = 'teaser';
     $output = $view->preview();
+    $output = drupal_render($output);
     foreach ($this->nodes as $node) {
       $body = $node->body;
       $teaser = $body[LANGUAGE_NOT_SPECIFIED][0]['summary'];
@@ -135,6 +137,7 @@ public function testRowPlugin() {
     // Test with links disabled.
     $view->rowPlugin->options['links'] = FALSE;
     $output = $view->preview();
+    $output = drupal_render($output);
     $this->drupalSetContent($output);
     foreach ($this->nodes as $node) {
       $this->assertFalse($this->xpath('//li[contains(@class, :class)]/a[contains(@href, :href)]', array(':class' => 'node-readmore', ':href' => "node/{$node->id()}")), 'Make sure no readmore link appears.');
@@ -143,6 +146,7 @@ public function testRowPlugin() {
     // Test with links enabled.
     $view->rowPlugin->options['links'] = TRUE;
     $output = $view->preview();
+    $output = drupal_render($output);
     $this->drupalSetContent($output);
     foreach ($this->nodes as $node) {
       $this->assertTrue($this->xpath('//li[contains(@class, :class)]/a[contains(@href, :href)]', array(':class' => 'node-readmore', ':href' => "node/{$node->id()}")), 'Make sure no readmore link appears.');
@@ -151,6 +155,7 @@ public function testRowPlugin() {
     // Test with comments enabled.
     $view->rowPlugin->options['comments'] = TRUE;
     $output = $view->preview();
+    $output = drupal_render($output);
     foreach ($this->nodes as $node) {
       foreach ($this->comments[$node->id()] as $comment) {
         $this->assertTrue(strpos($output, $comment->comment_body->value) !== FALSE, 'Make sure the comment appears in the output.');
@@ -160,6 +165,7 @@ public function testRowPlugin() {
     // Test with comments disabled.
     $view->rowPlugin->options['comments'] = FALSE;
     $output = $view->preview();
+    $output = drupal_render($output);
     foreach ($this->nodes as $node) {
       foreach ($this->comments[$node->id()] as $comment) {
         $this->assertFalse(strpos($output, $comment->comment_body->value) !== FALSE, 'Make sure the comment does not appears in the output when the comments option disabled.');
