mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
show absolute path for screenshot
This commit is contained in:
parent
a07ced84a2
commit
180c4b7088
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
this.remote = remote;
|
||||
|
@ -61,11 +62,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue