Fix screenshots and continue implementing phantomas v2

This commit is contained in:
Gaël Métais
2020-10-04 02:54:00 +02:00
parent a4f8e20293
commit 2bf3d5372b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ var ApiController = function(app) {
if (screenshotBuffer) {
debug('Image optimized');
data.screenshotBuffer = screenshotBuffer;
data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg'
data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg';
}
})
+1 -1
View File
@@ -17,7 +17,7 @@ function ResultsDatastore() {
this.saveResult = function(testResults) {
var screenshotFilePath = path.join(resultsDir, testResults.runId, resultScreenshotName);
var screenshotAPIPath = '/'
var screenshotAPIPath = '/';
return createResultFolder(testResults.runId)