mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Merge pull request #7429 from cjcenizal/bug/handle-error-save-screenshot
Fix bug in test common.js handleError method when saving a screenshot.
This commit is contained in:
commit
60d33748df
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ export default (function () {
|
|||
const fileName = `failure_${now}_${testName}.png`;
|
||||
|
||||
return this.saveScreenshot(fileName, true)
|
||||
.finally(function () {
|
||||
.then(function () {
|
||||
throw reason;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue