diff options
Diffstat (limited to 'tests/lib/screenshot-testing/support/page-renderer.js')
-rw-r--r-- | tests/lib/screenshot-testing/support/page-renderer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/screenshot-testing/support/page-renderer.js b/tests/lib/screenshot-testing/support/page-renderer.js index e1777f9bec..1d7d9470c8 100644 --- a/tests/lib/screenshot-testing/support/page-renderer.js +++ b/tests/lib/screenshot-testing/support/page-renderer.js @@ -397,8 +397,8 @@ PageRenderer.prototype._setupWebpageEvents = function () { const response = request.response(); if (VERBOSE || (response.status() >= 400 && this._isUrlThatWeCareAbout(request.url()))) { - const bodySize = (await response.buffer()); - const message = 'Response (size "' + bodySize.length + '", status "' + response.status() + '"): ' + request.url(); + const body = await response.buffer(); + const message = 'Response (size "' + body.length + '", status "' + response.status() + '"): ' + request.url() + "\n" + body.toString(); this._logMessage(message); } }); |