Skip to content

Commit

Permalink
Merge pull request #7429 from cjcenizal/bug/handle-error-save-screenshot
Browse files Browse the repository at this point in the history
Fix bug in test common.js handleError method when saving a screenshot.
  • Loading branch information
cjcenizal authored Jun 10, 2016
2 parents 761f3d9 + 8b08d1a commit 60d3374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/support/pages/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default (function () {
const fileName = `failure_${now}_${testName}.png`;

return this.saveScreenshot(fileName, true)
.finally(function () {
.then(function () {
throw reason;
});
};
Expand Down

0 comments on commit 60d3374

Please sign in to comment.