diff -u b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php --- b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Ajax/AjaxTest.php @@ -149,7 +149,7 @@ [ 'method' => 'html', 'render_type' => 'mixed', - 'expected' => '
foo foo bar

some string

additional not wrapped strings,

final string

', + 'expected' => ' foo foo bar

some string

additional not wrapped strings,

final string

', ], // Test that when the response has only top-level node elements, they // are processed properly without extra wrapping.