From 7a406d51c375247242d8b3c752bd1f9341215430 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 30 Mar 2018 14:48:41 -0700 Subject: [PATCH] development - screens - fix screenshot on failure --- test/screens/new.spec.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/screens/new.spec.js b/test/screens/new.spec.js index 71b3c53ac..43490226b 100644 --- a/test/screens/new.spec.js +++ b/test/screens/new.spec.js @@ -16,12 +16,13 @@ let driver captureAllScreens().catch((err) => { try { - verboseReportOnFailure() console.error(err) + verboseReportOnFailure() driver.quit() - } finally { - process.exit(1) + } catch (err) { + console.error(err) } + process.exit(1) }) async function captureAllScreens() {