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:
CJ Cenizal 2016-06-10 13:05:54 -07:00 committed by GitHub
commit 60d33748df

View file

@ -256,7 +256,7 @@ export default (function () {
const fileName = `failure_${now}_${testName}.png`;
return this.saveScreenshot(fileName, true)
.finally(function () {
.then(function () {
throw reason;
});
};