mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Cleanup and remove failure message from takeScreenshot.
This commit is contained in:
parent
a2a31c22a4
commit
ed244f33a6
3 changed files with 5 additions and 5 deletions
|
@ -94,7 +94,7 @@ define(function (require) {
|
|||
return remote.getCurrentUrl()
|
||||
.then(function (currentUrl) {
|
||||
expect(currentUrl).to.not.contain('logstash-*');
|
||||
})
|
||||
});
|
||||
})
|
||||
.catch(common.handleError(this));
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue