Fix bug in test common.js handleError method when saving a screenshot.

This commit is contained in:
CJ Cenizal 2016-06-10 12:44:59 -07:00
parent 761f3d9d9a
commit 8b08d1ac0b

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;
});
};