Fix screenshots and continue implementing phantomas v2
This commit is contained in:
@@ -114,7 +114,7 @@ var ApiController = function(app) {
|
|||||||
if (screenshotBuffer) {
|
if (screenshotBuffer) {
|
||||||
debug('Image optimized');
|
debug('Image optimized');
|
||||||
data.screenshotBuffer = screenshotBuffer;
|
data.screenshotBuffer = screenshotBuffer;
|
||||||
data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg'
|
data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg';
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function ResultsDatastore() {
|
|||||||
this.saveResult = function(testResults) {
|
this.saveResult = function(testResults) {
|
||||||
|
|
||||||
var screenshotFilePath = path.join(resultsDir, testResults.runId, resultScreenshotName);
|
var screenshotFilePath = path.join(resultsDir, testResults.runId, resultScreenshotName);
|
||||||
var screenshotAPIPath = '/'
|
var screenshotAPIPath = '/';
|
||||||
|
|
||||||
return createResultFolder(testResults.runId)
|
return createResultFolder(testResults.runId)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user