Cleanup and remove failure message from takeScreenshot.

This commit is contained in:
LeeDr 2015-11-11 11:49:02 -06:00
parent a2a31c22a4
commit ed244f33a6
3 changed files with 5 additions and 5 deletions

View file

@ -94,7 +94,7 @@ define(function (require) {
return remote.getCurrentUrl()
.then(function (currentUrl) {
expect(currentUrl).to.not.contain('logstash-*');
})
});
})
.catch(common.handleError(this));
});

View file

@ -79,7 +79,7 @@ define(function (require) {
})
// check that its 0 (previous increase was cancelled)
.then(function getPopularity() {
return settingsPage.getPopularity()
return settingsPage.getPopularity();
})
.then(function (popularity) {
expect(popularity).to.be('0');

View file

@ -40,7 +40,7 @@ define(function (require) {
.then(function (currentUrl) {
var navSuccessful = new RegExp(appUrl).test(currentUrl);
if (!navSuccessful) throw new Error('App failed to load: ' + appName);
})
});
});
};
@ -186,7 +186,7 @@ define(function (require) {
return self.remote.takeScreenshot()
.then(function writeScreenshot(data) {
var filepath = path.resolve(outDir, filename);
self.debug('Test Failed, taking screenshot "' + filepath + '"');
self.debug('Taking screenshot "' + filepath + '"');
fs.writeFileSync(filepath, data);
})
.catch(function (err) {
@ -196,4 +196,4 @@ define(function (require) {
};
return Common;
});
});