diff --git a/lib/templates/test-body-footer.html b/lib/templates/test-body-footer.html index 573a1ac6..ad75072f 100644 --- a/lib/templates/test-body-footer.html +++ b/lib/templates/test-body-footer.html @@ -12,6 +12,11 @@ request.onload = function() { var data = this.response; + // PhantomJS doesn't honor `responseType = 'json'` + if (typeof data === 'string') { + data = JSON.parse(data); + } + if (!data || !data.total) { return; }