Skip to content

Commit

Permalink
Merge pull request #1 from w33ble/testSettings
Browse files Browse the repository at this point in the history
show absolute path for screenshot
  • Loading branch information
LeeDr committed Oct 29, 2015
2 parents 5cad27f + 96cae27 commit 53a2f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/support/pages/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ define(function (require) {
var Promise = require('bluebird');
var moment = require('moment');
var fs = require('intern/dojo/node!fs');
var path = require('intern/dojo/node!path');


function Common(remote) {
Expand Down Expand Up @@ -64,11 +65,10 @@ define(function (require) {
return promise;
},


screenshotError: function screenshotError(testSubName, reason) {
var self = this;
var now = Date.now();
var filename = './screenshot-' + testSubName + '-ERROR-' + now + '.png';
var filename = path.resolve('./screenshot-' + testSubName + '-ERROR-' + now + '.png');
self.log('Test Failed, taking screenshot "' + filename + '"');
return self.remote.takeScreenshot()
.then(function writeScreenshot(data) {
Expand Down

0 comments on commit 53a2f6d

Please sign in to comment.